- TCP (Network Program (socket by TCP))
- server.c
- client.c
- proccess
- prod2cons.c (Producer Consumer Problem using proccess)
- Thread
- determinant.c (Calculation of determinant using threads)
- prod2cons.c (Producer Consumer Problem using threads)
- janken (socket by TCP)
- parent.c (Host-Server & player)
- child.c (CPU)
- MT.h (http://www.sat.t.u-tokyo.ac.jp/~omi/code/MT.h)
> make
Lock file version
> ./server-lock <file-name>
No lock file version
> ./server-nolock <file-name>
file-name : Specify the file name to log
> ./client <server-name> <client-name> <repeat-count>
server-name : Server-side's name or IP
client-name : A name that can identify the client that is running this program
repeat-count : Number of times to repeat message sending and receiving
> make
> ./prod2cons <buffer-size> <number-of-producer> <number-of-consumer> <repeat-count>
Can confirm parallel access of producer process and consumer process of ring buffer which is shared memory.
Do the time taken from process creation as the final output as follows.
<Real time>,<CPU time>
> make
> ./determinant <matrix-size> <number-of-thread>
> ./prod2cons <buffer-size> <number-of-producer> <number-of-consumer> <repeat-count>
> make
> ./parent
Open port 20000
> ./child <server-name> <CPU-name>
server-name : Name of server on which parent program is running