Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samueleresca/dc01da1417ef81707f2bd0e84b02922e to your computer and use it in GitHub Desktop.
Save samueleresca/dc01da1417ef81707f2bd0e84b02922e to your computer and use it in GitHub Desktop.
1: Spawn 20 threads
2: Performing n.20 Set operations from multiple threads
Setting the following id: 16
Setting the following id: 3
Setting the following id: 18
Setting the following id: 1
Setting the following id: 0
Setting the following id: 2
Setting the following id: 6
Setting the following id: 7
Setting the following id: 8
Setting the following id: 4
Setting the following id: 17
Setting the following id: 10
Setting the following id: 9
Setting the following id: 11
Setting the following id: 13
Setting the following id: 14
Setting the following id: 5
Setting the following id: 15
Setting the following id: 19
Setting the following id: 12
3: Performing n.20 Get operations from multiple threads
Getting the following id: 0
Getting the following id: 10
Getting the following id: 9
Getting the following id: 8
Getting the following id: 11
Getting the following id: 13
Getting the following id: 14
Getting the following id: 5
Getting the following id: 16
Getting the following id: 15
Getting the following id: 7
Getting the following id: 18
Getting the following id: 3
Getting the following id: 6
Getting the following id: 4
Getting the following id: 19
Getting the following id: 2
Getting the following id: 1
Getting the following id: 12
Getting the following id: 17
--- End of test ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment