Re: Multi thread

From: Ignacio Machin \( .NET/ C# MVP \) ("Ignacio)
Date: 08/02/04


Date: Mon, 2 Aug 2004 09:35:41 -0400

Hi,

 You can use several ways, onbe way is to have a queue with the files to be
processed, ( you can use a sync. queue, well you MUST ! really ) then you
create the X threads that get the file from the queue, you will have to keep
the results in an arraylist or something like that ( also must be sync to
avoid problems )

 That's pretty much what you need I think , just post back if yuo need more
help,

Cheers,

-- 
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"ruso" <rustem40@yahoo.com> wrote in message
news:5bf8bf9b.0408020512.7d88f159@posting.google.com...
> I am searching some string in files in the folders. But i want to
> search them with multithread form example 5 threads at the same time
> how can i do thanks


Relevant Pages

  • Re: FIO: kjournald blocked for more than 120 seconds
    ... So sync queue never starve async ... percentages of slice that will be decreased. ... The reason we don't dispatch async with sync in flight, ...
    (Linux-Kernel)
  • Re: FIO: kjournald blocked for more than 120 seconds
    ... So sync queue never starve async ... percentages of slice that will be decreased. ... The reason we don't dispatch async with sync in flight, ...
    (Linux-Kernel)
  • Re: FIO: kjournald blocked for more than 120 seconds
    ... When runnig FIO benchmark, kjournald blocked for more than 120 ... This causes active queue be expired immediately if it's empty, ... Sync queues do not idle and they are dispatched all the time. ... When cfq_select_queue selects the async queue which includes ...
    (Linux-Kernel)
  • Re: FIO: kjournald blocked for more than 120 seconds
    ... When runnig FIO benchmark, kjournald blocked for more than 120 ... This causes active queue be expired immediately if it's empty, ... Sync queues do not idle and they are dispatched all the time. ... When cfq_select_queue selects the async queue which includes ...
    (Linux-Kernel)
  • Re: FIO: kjournald blocked for more than 120 seconds
    ... When runnig FIO benchmark, kjournald blocked for more than 120 ... This causes active queue be expired immediately if it's empty, ... Sync queues do not idle and they are dispatched all the time. ... When cfq_select_queue selects the async queue which includes ...
    (Linux-Kernel)