Python Locks, RLocks, Semaphores, Conditions, Events and Queues
1–5 of 5 posts
Re: Python Locks, RLocks, Semaphores, Conditions, Events and Queues
#2Re: Python Locks, RLocks, Semaphores, Conditions, Events and Queues
#3While the OP talks specifically about Python, the patterns of a semaphore, lock (aka mutex, a semaphore with value 1), condition and queue are relevant to many languages, many of which are not hampered by a GIL. Personally, the more I use threads, the more I like this way of programming, at least for the request/response paradigm.
Re: Python Locks, RLocks, Semaphores, Conditions, Events and Queues
#4Re: Python Locks, RLocks, Semaphores, Conditions, Events and Queues
#5While the OP talks specifically about Python, the patterns of a semaphore, lock (aka mutex, a semaphore with value 1), condition and queue are relevant to many languages, many of which are not hampered by a GIL. Personally, the more I use threads, the more I like this way of programming, at least for the request/response paradigm.
Try writing an operating system. Then let me know if you still like programming with threads.