Cor Ligthert wrote:
dependable different queues, than it can be a good solution, however
when the queus depends from each other, than it is in my opinion better to
use let it process by one thread. Otherwise the change that you create
only overhead with multiple threading is than very high.
I only have one queue. The order data comes in the form of text files
(I cannot control this). Each text file multiple orders and has order
master records and order detail records. There are multiple orders
within a single file. The orders within the file are in order
sequentially. The files are created roughly every 15 minutes. There
exists the possibility that within a single file, there could be an
order and then later in the file an update to that order. I have to
make sure the order is processed before the update to the order. If I
used just a single thread, I wouldn't have to worry about this, but I
would like to use multiple threads because some orders may take longer
to process and I want to continue to process smaller orders, to keep
the up the throughput. I understand on a single processor, multiple
threads doesn't really speed things up, but I want to increase the
throughput of orders being processed.
Thanks again for the responses.