jurij <jurij.ivastsuk @waxar.euwrites :
[SNIP]
Standard C doesn't have threads. Try comp.programmin g.threads.
--
Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
At first we should mention that we have a one-processor, linux-machine
(Kernel 2.6.23) and developing an I/O application using g++.
>
The problem:
we have a task :"reader" which should read sequentially some data from
a device and fill, for example, 4 buffers with it; additionally we
have another task: "processor" , its responsibility is to process data
which it can find in these 4 buffers. Our goal is to design this
schema very optimal from the speed point of view.
(Kernel 2.6.23) and developing an I/O application using g++.
>
The problem:
we have a task :"reader" which should read sequentially some data from
a device and fill, for example, 4 buffers with it; additionally we
have another task: "processor" , its responsibility is to process data
which it can find in these 4 buffers. Our goal is to design this
schema very optimal from the speed point of view.
Question:
Why our multithreading schema described above cannot give us
enhancement in speed?
Why our multithreading schema described above cannot give us
enhancement in speed?
--
Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"