Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariosimao/sd-trab-2
Sistemas Distribuídos - Trabalho 2
https://github.com/mariosimao/sd-trab-2
Last synced: 5 days ago
JSON representation
Sistemas Distribuídos - Trabalho 2
- Host: GitHub
- URL: https://github.com/mariosimao/sd-trab-2
- Owner: mariosimao
- Created: 2022-05-14T13:26:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-24T22:56:42.000Z (over 2 years ago)
- Last Synced: 2024-11-19T15:11:41.415Z (2 months ago)
- Language: C++
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thread synchronization
## Spinlock adder
### Compile
```bash
$ make sum
```### Usage
```bash
$ ./sum
```### Example
```bash
$ ./sum 10000000 256
Sum: 30678
Time: 46 ms
```## Semaphore producer-consumer
### Compile
```bash
$ make prime
```### Usage
```bash
$ ./prime
```### Example
```bash
$ ./prime 32 1 2
Time: 252 ms
```