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 » Wed, 2014-02-12, 09:04

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: 2291
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#2 Post by J. Riesmeier » Wed, 2014-02-12, 09:52

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 » Fri, 2014-02-21, 10:15

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: 2291
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#4 Post by J. Riesmeier » Fri, 2014-02-21, 10:20

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 » Mon, 2014-02-24, 02:39

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: 2291
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Does DCMTK supprot Multi-Thread?

#6 Post by J. Riesmeier » Mon, 2014-02-24, 08:45

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 » Mon, 2014-02-24, 10:26

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 » Fri, 2014-03-14, 17:50

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: Bing [Bot] and 1 guest