2 Assemblers, 3 Servers
Posted: Wednesday 25 January, 2012 - 12:34
Hey,
I've been stuck for quite a while now, with no idea how to solve this problem.
Basically, there are 2 sources, which give out a product, this gets into the first Assembler, which then gives it out to a random open server. These servers then have a waiting frame and then send it out to the queue which waits until the last server is done with it and either sends it to the exit or (30% chance) to the second Assembler, which is also linked to the first 3 servers, to rotate once more.
The problem I find is, that the first Assembler gets more priority then the second one. Which leads to the program not running at all, when 2 products are going to the second assembler after each other. It causes a clog.
I can't add any other buffers to the program, and I think I need to do some priority programming on exit and on entry of sorts. However, I'm stumped on how to start this, as my programming skills aren't that developed and only have moderate knowledge on Java and C/C++.
I attached my .mod file for reference.
Thanks in advance for any suggestions and feedback!
I've been stuck for quite a while now, with no idea how to solve this problem.
Basically, there are 2 sources, which give out a product, this gets into the first Assembler, which then gives it out to a random open server. These servers then have a waiting frame and then send it out to the queue which waits until the last server is done with it and either sends it to the exit or (30% chance) to the second Assembler, which is also linked to the first 3 servers, to rotate once more.
The problem I find is, that the first Assembler gets more priority then the second one. Which leads to the program not running at all, when 2 products are going to the second assembler after each other. It causes a clog.
I can't add any other buffers to the program, and I think I need to do some priority programming on exit and on entry of sorts. However, I'm stumped on how to start this, as my programming skills aren't that developed and only have moderate knowledge on Java and C/C++.
I attached my .mod file for reference.
Thanks in advance for any suggestions and feedback!