Re: Parallel multithreading for I/O operation in linux ?
On Jul 1, 12:20 pm, Michael DOUBEZ <michael.dou...@free.fr> wrote:
Robot a =E9crit :
Your schema is still sequential.
your 'p's depend on 'r's.
So you should have 4 threads that do 'r' + 'p' in sequence.
No it is not. Re-read the OP question.
It is a classical producer/consumer schema.
The answer is likely to be a bounded I/O or a bug as Gianni
Mariani said.
It may also depend on the implementation of threads. Some early
thread implementations in Linux or Solaris, for example, would
suspend the process when a thread waited, even if other threads
had something to do. (This shouldn't be a problem if you have
an up-to-date kernel, and are using pthreads, at least with
these two systems. But you never know.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34