os_cp:assignments
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| os_cp:assignments [2023/05/09 23:45] – jkonczak | os_cp:assignments [2023/05/23 21:25] (current) – [Assignment 2] jkonczak | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| ===== Assignment 2 ===== | ===== Assignment 2 ===== | ||
| - | TBA | + | |
| + | **Deadline: June 9th.** | ||
| + | |||
| + | Write a **thread-safe | ||
| + | [[https:// | ||
| + | that offers the following operations: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * operations that allow iterating over all key-value pairs: '' | ||
| + | |||
| + | You may extend the API of the associative array whenever needed. | ||
| + | You may choose any type for key and value (e.g., '' | ||
| + | |||
| + | Moreover, write an application that tests the associative array by running the | ||
| + | following operations in parallel: | ||
| + | * iterating through all key-value pairs | ||
| + | * adding a key-value pair and removing it | ||
| + | * adding a number of key-value pairs and then removing all of them | ||
| + | * getting values of randomly chosen keys | ||
| + | * polling for values of randomly chosen keys | ||
| + | (You can run each of these operations in a loop, one thread per one loop.) | ||
| + | |||
| + | < | ||
os_cp/assignments.1683675912.txt.gz · Last modified: (external edit)