UXP1A-Project
UNIX system architecture(UXP1A) project.
Compile
Compile from workspace root with command:
cmake CMakeList.txt
make
This generate client.out
file (CLI client to test Linda library) and test executable. BOOST_LIBRARY is required. To run test, use make test
.
How to use client
To use client.out
, at first argument set path to
shared memory-key file. For example:
./client.out shm-test-file
When running, following commands are possible:
help
to see simple helpoutput <size:int> {<type:i|f|s> <value:int|float|string>}
to make output operation on given tupleinput <size:int> <timeout_sec:int> {<type:i|f|s> <cmp:==|<|<=|>|>=|*> [<value:int|float|string>]}
for input operationread <size:int> <timeout_sec:int> {<type:i|f|s> <cmp:==|<|<=|>|>=|*> [<value:int|float|string>]}
for read operation
Pattern <size:int> {<type:i|f|s> <value:int|float|string>}
means:
a tuple with size elements, for each element: type as i
(int),
f
(float) or s
(string) and value for this element. E.g.:
output 4 i 1 s abc f 3.1415 s d
Is tuple (1, "abc", 3.1415, "d")