os_cp:assignments
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| os_cp:assignments [2023/05/09 23:43] – utworzono jkonczak | os_cp:assignments [2023/05/23 21:25] (current) – [Assignment 2] jkonczak | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| **There is one strict performance requirement: | **There is one strict performance requirement: | ||
| must compute faster than a single-threaded brute-force program doing the same job.** | must compute faster than a single-threaded brute-force program doing the same job.** | ||
| + | |||
| + | ----- | ||
| + | |||
| + | |||
| + | ===== Assignment 2 ===== | ||
| + | |||
| + | |||
| + | **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.1683675823.txt.gz · Last modified: (external edit)