Message: Re: Multithreaded App hangs in just one thread Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Multithreaded App hangs in just one thread 

Forum: Multithreading
Re: None Multithreaded App hangs in just one thread (Youming Yang)
Re: Question Re: Multithreaded App hangs in just one thread (Andrea Dotti)
Re: None Re: Multithreaded App hangs in just one thread (Youming Yang)
Date: 24 May, 2016
From: Andrea Dotti <Andrea Dotti>

Hello, the first thing to do is to verify that your nested parametrization is thread-safe. You should consider that the concrete class implementing your parametrization code is shared among all threads, so you can have many of them calling at the same time your parametrization code. For example, consider using G4Cache<> class if needed to create thread-local variables: consult section "2.14.3.4.1. The template class G4Cache" of the Toolkit developer guide http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForToolkitDeveloper/html/ch02s14.html#sect.DsgnFuncMT.MemHand

Similar considerations should be done for other classes that are shared among threads and that are used in your user-code.

Andrea

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Multithreaded App hangs in just one thread   (Youming Yang - 25 May, 2016)
 Add Message Add Message
to: "Re: Multithreaded App hangs in just one thread"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews