Does DCMTK supprot Multi-Thread?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

Does DCMTK supprot Multi-Thread?

#1 Post by xfjsuperking »

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

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#2 Post by J. Riesmeier »

Could you be more specific? What do you want to do?

xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

Re: Does DCMTK supprot Multi-Thread?

#3 Post by xfjsuperking »

This is what i want to do, It looks like Multi-Thread is not supported by dcmtk
So maybe i have to modify it

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#4 Post by J. Riesmeier »

Actually, it is supported (to some degree) but if you don't tell us what you intend to do...

xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

Re: Does DCMTK supprot Multi-Thread?

#5 Post by xfjsuperking »

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.

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#6 Post by J. Riesmeier »

Did you already check the DcmSCPPool class (which is part of the latest snapshot)?

xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

Re: Does DCMTK supprot Multi-Thread?

#7 Post by xfjsuperking »

oh oh, that's great. thanks. that will save my time

oblivion81
Posts: 15
Joined: Tue, 2013-12-10, 13:19

Re: Does DCMTK supprot Multi-Thread?

#8 Post by oblivion81 »

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest