CodeGym /Courses /Java Core /Tasks involving a shared resource: console output

Tasks involving a shared resource: console output

Java Core
Level 7 , Lesson 2
Available

"Hello, Amigo!"

9
Task
Java Core, level 7, lesson 2
Locked
Notes
Notes
5
Task
Java Core, level 7, lesson 2
Locked
Faster together? We'll see :)
Faster together? We'll see :)
Comments (8)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Szymon Level 41, Warsaw, Poland
26 November 2020
Great presentation of trickiness of the subject
Onur Bal Level 27, Istanbul, Turkey
20 September 2020
Did anyone ever get "Another thread deleted our note" printed out? Only the two other options were printed out for me during execution.
Jonaskinny Level 25, Redondo Beach, United States
25 April 2022
I did.
Tara Rosenthal Level 18, Farmers Branch, United States
8 May 2020
The first time I ran the faster together program, the actual result matched the expected result, and I was super confused about what the point of the lesson was and even compared the time ran with one thread vs the 10. But then every other time I ran it with the 10 threads, it came back false, so that made more sense.
MaGaby2280 Level 41, Guatemala City, Guatemala
30 January 2020
Good starting tasks for this level!
Ewerton Level 30, Belo Horizonte, Brasil
2 July 2019
Out of curiosity, I measured the time spent sorting array using: ->swap method with 10 threads: 109 ms ->Arrays.sort(): 1 ms
Saikat Das Level 17, Chittagong, Bangladesh
9 July 2019
They are using Double Pivot Quick Sort in Intelij IDEA. The beauty of Algorithm and Data Structure.
JeRiF94 Level 22, Baku, Azerbaijan
28 May 2019
DONE!