Skip to content

Latest commit

 

History

History
104 lines (93 loc) · 2.96 KB

readme.md

File metadata and controls

104 lines (93 loc) · 2.96 KB

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

code structure