In a relevant language, create an array of 1000 numbers. Initialize all of the values in the array to zero. Create two threads that run concurrently and which increment each element of the array one time. When both threads have finished running, all elements in the array should have the value of two. Verify this
In a relevant language, create an array of 1000 numbers. Initialize all of the values in the array to zero. Create two threads that run concurrently and which increment each element of the array one time. When both threads have finished running, all elements in the array should have the value of two. Verify this
jonrosenberg/Ruby-Multithread-Example
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
In a relevant language, create an array of 1000 numbers. Initialize all of the values in the array to zero. Create two threads that run concurrently and which increment each element of the array one time. When both threads have finished running, all elements in the array should have the value of two. Verify this
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published