Re: Parallel processing and APC synchronization.
- From: Emsi <mariusz.woloszyn@xxxxxxxxx>
- Date: Fri, 27 Feb 2009 01:03:57 -0800 (PST)
On Feb 25, 10:56 pm, "boris" <somewh...@xxxxxxxxxxx> wrote:
You could use IO completion ports in conjuntion with thread pool. Advantage:Sounds promising. I'll investigate this API.
it's possible to specify max number of threads (from the pool) to be active
at same time - you probably don't want more than 1 thread per core or in
case of Nehalem (with hyper-threading enabled) 2 threads per core. If one of
active threads (from thread pool) begins waiting for i/o and there're some
active work requests for completion port, completion port will activate
another thread from thread pool - thus trying to keep all CPU cores busy.
In spite of its name, IO completion port isn't necessarily related to i/o..
New work items can be submitted to IO completion port via
PostQueuedCompletionStatus API.
Thank you for pointing out.
Regards,
.
- References:
- Parallel processing and APC synchronization.
- From: Emsi
- Re: Parallel processing and APC synchronization.
- From: boris
- Parallel processing and APC synchronization.
- Prev by Date: Re: Detecting scheduler interference?
- Next by Date: Re: Detecting scheduler interference?
- Previous by thread: Re: Parallel processing and APC synchronization.
- Next by thread: NTFS $INDEX_ROOT attribute
- Index(es):
Relevant Pages
|