Target Pooling

I created a model for performing work tasks in a server application using the thread pool associated with the I / O completion port, for example, as shown in the messages below:

http://weblogs.asp.net/kennykerr/archive/2008/01/03/parallel-programming-with-c-part-4-io-completion-ports.aspx

http://blogs.msdn.com/larryosterman/archive/2004/03/29/101329.aspx

Are there classes in boost that can help with this programming model?

+4
source share
4 answers

Not really, at least not the last time I watched. I mean, boost :: thread_group can make things a little tidier in places, but not in the way it could make a big difference, I don't think.

Supporting support threading support seems extremely useful when writing something cross-platform, but considering that what you are writing will in any case be related to Win32 (due to the use of IOCP), in fact, it seems not very much capitalize on this.

+1
source

You might want to check out the threadpool project , which looks like a good threadpool implementation in addition to boost. I have not tried it myself, but it looks pretty good.

+1
source

I didn’t see anything in boost, which helps in the structure with which you usually end up working with IO I / O ports, but then I didn’t look at it recently ... However, a little off topic, you can take a look at the pool IOCP-based threads, which is part of my free IOCP infrastructure. This may give you some ideas, if nothing else. Here you can find the code here . The thread pool has supported expansion and contraction depending on demand and has been used in production systems for more than 6 years.

+1
source

ACE contains several reactors that you can use to simulate things around your IOCP. Some of them may have been added to enhance, but enhancement makes them pretty easy.

0
source

Source: https://habr.com/ru/post/1276501/


All Articles