Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```