Sunday, May 19, 2013
Google Custom Search

Our Community

Membership Membership:
Latest New User Latest: jin02023343
New Today New Today: 1
New Yesterday New Yesterday: 2
User Count Overall: 28633

People Online People Online:
Visitors Visitors: 6
Members Members: 0
Total Total: 6

Online Now Online Now:

ClearCanvas Community Forums

We've moved our Developer Forums!
To better assist our open source community, we have moved our repository and developer forums to GitHub. You can access the new developer forums on our ClearCanvas GitHub issues board.

Thread Safety
Last Post 2012-04-25 03:50 PM by chafey. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
chafey
Veteran Member
Veteran Member
Posts:120

--
2012-04-24 06:17 AM

Any guidance on the thread safetyness of the dicom toolkit?  I think I may be having thread safety issues with the JPEG codec - is it thread safe?  (can I decompress images in different threads concurrently?)

Thanks

steve
Senior Member
Senior Member
Posts:2096

--
2012-04-24 08:53 AM
In general, instances of the objects in the DICOM toolkit should only be access from one thread at a time. There are a few exceptions, like the the DicomClient/DicomServer and Listener classes that are thread safe and can be accessed from different threads.

In any case, the JPEG codec is using the IJG code underneath. That code has been fairly widely used across the industry, and we have also used it in a threaded environment and haven't seen any issues. There may be something there, be we use it with threads and haven't seen any issues.

Steve
Live and real-time support available for Personal, Team, and Cleome Edition customers.
chafey
Veteran Member
Veteran Member
Posts:120

--
2012-04-24 10:08 AM
Thanks for the quick response, it is probably my code but I figured I would check to make sure I was using it right first.
chafey
Veteran Member
Veteran Member
Posts:120

--
2012-04-25 09:43 AM
I am still having problems with one specific study that is multiframe with JPEG baseline images in it. I am using CC from an ASP.NET MVC application - does anyone know if there is anything special I need to do when hosted under IIS? I am going to put a coarse lock on all access to CC and see if that helps (ugh)
chafey
Veteran Member
Veteran Member
Posts:120

--
2012-04-25 03:50 PM
OK I think I figured out my problem - I have an ASP.NET MVC application that uses clear canvas and IIS7 was recycling the application domain after 20 minutes of inactivity which caused CC to lose track of the JPEG codec (DicomCodecRegistry.GetCodec() would start returning null). I am currently working around it by disabling application domain recycling. I know the plugin loading code was reworked a few months back (I am still using a 2.0 SP1 based source tree) so perhaps this is fixed. I also made some changes to the plugin loading code to meet my own needs so I could have broken this somehow too. Anyway, hope others find this useful
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2013 ClearCanvas Inc. All Rights Reserved