Does DCMTK supprot Multi-Thread?
Moderator: Moderator Team
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
Does DCMTK supprot Multi-Thread?
Hi All:
I find that DCMTK handles each connection with one process. Now I want it to handle each connection with one thread, how should i do ?
Thanks!
Simon
I find that DCMTK handles each connection with one process. Now I want it to handle each connection with one thread, how should i do ?
Thanks!
Simon
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Does DCMTK supprot Multi-Thread?
Could you be more specific? What do you want to do?
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
Re: Does DCMTK supprot Multi-Thread?
This is what i want to do, It looks like Multi-Thread is not supported by dcmtk
So maybe i have to modify it
So maybe i have to modify it
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Does DCMTK supprot Multi-Thread?
Actually, it is supported (to some degree) but if you don't tell us what you intend to do...
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
Re: Does DCMTK supprot Multi-Thread?
Hi :
What I want to do is:
I want to develop a PACS server with a main thread and a thread pool .The main thread is responsible for receiving the incoming connection, after the incoming connection is accepted by the main thread, the accepted socket is passed to a thread which is picked from the thread pool. The picked thread will finish the remaining work.
What I want to do is:
I want to develop a PACS server with a main thread and a thread pool .The main thread is responsible for receiving the incoming connection, after the incoming connection is accepted by the main thread, the accepted socket is passed to a thread which is picked from the thread pool. The picked thread will finish the remaining work.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Does DCMTK supprot Multi-Thread?
Did you already check the DcmSCPPool class (which is part of the latest snapshot)?
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
Re: Does DCMTK supprot Multi-Thread?
oh oh, that's great. thanks. that will save my time
-
- Posts: 15
- Joined: Tue, 2013-12-10, 13:19
Re: Does DCMTK supprot Multi-Thread?
I suggest you to take a look to a topic I posted a couple of months ago about
multithreading support. You'll find it interesting.
Daniele
multithreading support. You'll find it interesting.
Daniele
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest