MATLAB Answers

0

how pause (not block) simevents entity generation?

Asked by ivan mcgregor on 27 Jan 2018
Latest activity Answered by Teresa Hubscher-Younger on 2 Feb 2018
hi everyone. I need help to pause (not block) entity generation until resourse will be reliased

  0 Comments

Sign in to comment.

Tags

3 Answers

Answer by Teresa Hubscher-Younger on 31 Jan 2018

One way to do this is to reroute entities, where the blockage occurs, store them in a separate queue and send them back into the system later (or even terminate them). I think though that I'm confused by the question. Can you explain your use case in more detail? Pausing and blocking seem like very similar actions to me? I'm having a hard time understanding what you are trying to do exactly.

  1 Comment

Thanks for your attention. I'm not englishspeaking and i need some time for translate my problem description.

Sign in to comment.


Answer by ivan mcgregor on 2 Feb 2018

OK, let's try. I'm simulating electronic system of two modules with different operating time to failure. Failures are presented by entities generated by two generators. For each module failure repair using it's resourse (spare parts). when resourse is ended , generator generates entity and it blocks until needed resourse will be release. but system can't work without one module, so i need to pause second entity generator until first will be unblocked thank you for your help

  0 Comments

Sign in to comment.



That's a great description. I think blocking will work for you with a queue of size 1 in between. What I'm imagining is that the generators create a failure, you buffer it temporarily in your size one queue, then you send it to your server for processing. If the resource is available, service happens. And all goes smoothly. If you don't have a resource and the queue is full (it only has a capacity of 1, say), then generation is blocked). If you set time generation on the dialog to happen quickly enough, this should be OK I would think. But maybe there is something I am missing?

  0 Comments

Sign in to comment.