https://github.com/tsimpdim/readerswriters
Project for Parallel and Distributed Computations
https://github.com/tsimpdim/readerswriters
java multithreading reader-writer-problem reader-writer-problem-solution readers-writer-lock
Last synced: 3 months ago
JSON representation
Project for Parallel and Distributed Computations
- Host: GitHub
- URL: https://github.com/tsimpdim/readerswriters
- Owner: TsimpDim
- Created: 2019-04-14T17:00:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T08:14:14.000Z (about 6 years ago)
- Last Synced: 2024-12-28T16:43:15.634Z (5 months ago)
- Topics: java, multithreading, reader-writer-problem, reader-writer-problem-solution, readers-writer-lock
- Language: Java
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Tsimpitas Dimitris dai17131 [Readers- Writers]
## Example Execution:
### Server
---
```
Server Waiting
[INIT STATE]
Flight |Status |Time
----------|----------|--------
WD623 |DEPARTING |22:22
| |
VL001 |BOARDING |17:02
| |
HZ205 |EN ROUTE |17:02
| |
CX183 |EN ROUTE |07:07
| |Flight |Status |Time
----------|----------|--------
WD623 |DEPARTING |22:22
| |
VL001 |BOARDING |17:02
| |
HZ205 |EN ROUTE |12:31
| |
CX183 |EN ROUTE |07:07
| |Flight |Status |Time
----------|----------|--------
WD623 |DEPARTING |22:22
| |
VL001 |BOARDING |03:53
| |
HZ205 |EN ROUTE |12:31
| |
CX183 |EN ROUTE |07:07
| |Flight |Status |Time
----------|----------|--------
WD623 |DEPARTING |22:22
| |
VL001 |EN ROUTE |12:31
| |
HZ205 |EN ROUTE |12:31
| |
CX183 |EN ROUTE |07:07
| |
```### Clients
---
```
C11[W] sending request
C7[R] sending request
C3[R] sending request
C5[R] sending request
C9[R] sending request
C8[R] sending request
C1[R] sending request
C2[R] sending request
C4[R] sending request
C13[W] sending request
C11[W] received a reply:
Reply opcode = WOK | Reply value = null
C7[R] received a reply:
Reply opcode = ROK | Reply value = {time=12:31, status=EN ROUTE}
C9[R] received a reply:
Reply opcode = RERROR | Reply value = null
C3[R] received a reply:
Reply opcode = ROK | Reply value = {time=07:07, status=EN ROUTE}
C8[R] received a reply:
Reply opcode = ROK | Reply value = {time=12:31, status=EN ROUTE}
C5[R] received a reply:
Reply opcode = ROK | Reply value = {time=22:22, status=DEPARTING}
C4[R] received a reply:
Reply opcode = ROK | Reply value = {time=07:07, status=EN ROUTE}
C2[R] received a reply:
Reply opcode = ROK | Reply value = {time=12:31, status=EN ROUTE}
C1[R] received a reply:
Reply opcode = ROK | Reply value = {time=22:22, status=DEPARTING}
C6[R] sending request
C12[W] sending request
C13[W] received a reply:
Reply opcode = WOK | Reply value = null
C6[R] received a reply:
Reply opcode = ROK | Reply value = {time=03:53, status=BOARDING}
C10[R] sending request
C12[W] received a reply:
Reply opcode = WOK | Reply value = null
C10[R] received a reply:
Reply opcode = ROK | Reply value = {time=12:31, status=EN ROUTE}```
## Code Structure
