Quote:
Originally Posted by Mr. Cipher while another thread handles the "wait until A is complete to do B" set of instructions that prevents us from moving very far with multi-thread programming, as you suggested above. |
i'm not entirely sure if i get you...but here goes.
you can multi-thread all you want, but if the in-order process takes longer than the out-of-order processes, you're just wasting effort.
as an example, there is an in-order process takes 10 seconds and there are three out-of-order processes that take 5 seconds each.
in a single-threaded application, the program would take 25 seconds to run. in a dual-threaded environment, it would take 15 seconds to run(the IO in one thread and OOOs in another thread). with 3 threads, it would take 10 seconds(IO in one, two OOs in another, and the 3rd OO by itself). now....we COULD enable 4-threads....but that ould be pointless since the run-time would till be 10 seconds.
theres a whole lot of other technicalities and workarounds and stuff, but thats quite a bit beyond me....
ps, there is a difference between processes and threads...i'm just being lazy with my terminology.