|
Hi,
I am working on a IOCP application.
The machine has 2 processors, running windows XP. I have 4 working threads
running to handle the IOCP, and have a maximum of 5000
connections.
I am now at a position in using database
files. I was going to create a database pool for the requests, but if I am
right in saying : If there are 4 working threads to handle all the IOCP, i
will only need a pool of 4 database handles, as there will only be 4 threads
to deal with requests?
-or-
Should I create a say a pool of threads (each one
having a database handle), and if there is a database request, let the thread
handle the request using standard socket commands(dealing with any blocking
scenario), instead of the IOCP's working threads. Then after the database
thread is finished, just post another recv for IOCP.
Anyone any thoughts on
this?
I don't see
anything wrong with the first solution. I think I would go with it.
| I've done the math enough to know the dangers
of a second guessing... |
|
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription
changes, and list archive.