Mr Chump is our candidate! And we'll help him a bit by making him give a speech, and then another, and then another during a political debate. We'll help him a little by making him talk until all the available time has been taken. Threads come to our rescue!
Promotion during political debates
- 9
Locked
Comments (7)
- Popular
- New
- Old
You must be signed in to leave a comment
Hoist
4 March, 06:20
Clever. I had to look up join( )
0
MoJo
2 November 2020, 23:15
hmmm chump... i wonder who this might be xD
+2
Ian De Bie Full Stack Developer
15 October 2020, 03:05
for anyone who struggled on this one like i did, here's a hint. when is the soonest you can call the method to make the thread wait on the chump object?
+6
Muhammad Vahhaaj
15 July 2019, 10:45
Output:
Chump spoke 200 times
Dustbin spoke 0 times
Schooner spoke 0 times
lmao chump took all the time others didnt even speak
, that is why programming is damn fun xD
+4
null
13 May 2020, 23:33
LOL CHUMP gotta make Eh-mu- ree-ka great again
+4
Profj
24 June 2019, 10:29
What function does the volatile keyword perform?
0
Andrei
11 December 2020, 15:48
It takes that primitive and stores it in the main memory, instead of the cache memory of that thread/cpu. So if it is modified by thread 1 , then thread 2 can see the new value.
https://www.youtube.com/watch?v=nhYIEqt-jvY&ab_channel=JakobJenkov
+3