Tag: multithreading

66 votes
13 answers
1.7K views
Can num++ be atomic for 'int num'?

In general, for int num, num++ (or ++num), as a read-modify-write operation, is not atomic. But I often see co

avatar
Forrest
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
1.2K views
jython multithreading

I started studying python a couple of month ago, then I found Jython. Do threads work properly in Jython, sin

avatar
Royal
0 1 0 9
asked 07 September, 2021
61 votes
4 answers
1.9K views
Does Jython have the GIL?

I was sure that it hasn't, but looking for a definite answer on the Interwebs left me in doubt. For examp

avatar
Nereida
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
1.8K views
"implements Runnable" vs "extends Thread" in Java

From what time I've spent with threads in Java, I've found these two ways to write threads: With imp

avatar
Thurman
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
1.7K views
What is thread safe or non-thread safe in PHP?

I saw different binaries for PHP, like non-thread or thread safe? What does this mean? What is the differen

avatar
Basil
0 1 0 9
asked 07 September, 2021