I have an object that 开发者_开发百科is called from two different threads and after it was called by both it destroys itself by \"delete this\".
I read that on a system with 1 CPU and non preemtive linux kernel (2.6.x) a spin_lock call is equivalent to an empty call, and thus implemented that way.
I have a server listening on a port for request. When the request comes in, it is dispatched to a singleton class Singleton. This Singleton class has a data structure RootData.
I\'m updating legacy code, written in VB6, and I\'ve come across the need for a mutex. I have two sockets, and I need to send and receive from various sources. So I plan on having one socket continuou
My main question is does the Threading lock object create atomic locks? It doesn\'t say that the lock is atomic in the module documentation. in pythons mutex documentation it does say the mutex lock i
I am starting with multi-threads in python (or at least it is possible th开发者_Go百科at my script creates multiple threads). would this algorithm be the right usage of a Mutex? I haven\'t tested this
I am trying to improve my understanding of memory barriers. Suppose we have a weak memory model and we adapt Dekker\'s algorithm. Is it possible to make it work correctly under the weak memory model b
My c# WinForm solution contains several projects including an Admin project containing frmAdmin and a User project containing frmUser.A third project contains frmTimer that has a timer that periodical
i have two threads, they run pretty fast, i\'m using pthread_mutex_lock and pthread_mutex_unlock to access global (externed variables) data
Now i\'m try to learn multithreading and mutext. But i don\'t understand it. For example i add items to list in anotyher thread then main programm: