35 Commits

Author SHA1 Message Date
zenon
cb99f6a19a Move include to common header file 2018-06-09 13:00:42 +02:00
zenon
d6674d7aa4 Generator(s) no properly exit(s) 2018-06-08 22:18:02 +02:00
zenon
8277a26ed2 Semaphores static again 2018-06-08 15:16:41 +02:00
zenon
255708ebc0 Try setting global semaphores as non-static 2018-06-08 12:28:57 +02:00
zenon
051a727caf Write complete solution array to shared memory without any delimiters 2018-06-08 11:03:54 +02:00
zenon
065f445c79 Change size of shared memory to MAX_SIZE instead of CIRC_BUF_SIZE 2018-06-08 10:58:01 +02:00
zenon
9cb4d66d4b Change wrong wait_sem to post_sem to avoid deadlock 2018-06-08 10:08:37 +02:00
zenon
da416ca283 Do unlinking of SEM_WRITE_END in supervisor 2018-06-07 18:24:12 +02:00
zenon
829cc3cb3a Change error messages 2018-06-07 18:13:37 +02:00
zenon
834f3f7bf7 Unlinking not done in generator except for SEM_WRITE_END 2018-06-07 18:04:38 +02:00
zenon
84c2dcdd78 Modify error messages 2018-06-07 17:58:02 +02:00
zenon
de4ed6532c Rearrange cleanup() function and copy wait_sem() function from
supervisor
2018-06-07 17:52:49 +02:00
zenon
6ee735a030 Modify cleanup() function and make semaphores and shared memory global 2018-06-07 17:46:41 +02:00
zenon
a7ebeb7246 Change MAX_ITEMS to CIRC_BUF_SIZE for shared memory access 2018-06-07 16:50:02 +02:00
Kranklyboy
5a9d00c48a Write whole solutions to shared memory 2018-06-07 12:18:36 +02:00
zenon
10ec964fec Read and write solution characterwise 2018-06-07 10:40:55 +02:00
zenon
eb45b4eb92 Allow shared memory read 2018-06-07 10:35:49 +02:00
zenon
5fe85da2ef Loop until supervisor exits 2018-06-07 10:33:42 +02:00
zenon
3af17e0d84 Write whole solution to shared memory and -1 if acyclic 2018-06-07 10:22:30 +02:00
zenon
db393a0b43 Modify spacing 2018-06-07 10:10:55 +02:00
zenon
80afbc9473 Activate shared memory and semaphores 2018-06-07 10:09:45 +02:00
zenon
8dbd116b88 Working 2018-06-06 19:22:01 +02:00
zenon
71ac479aca Remove printing of solutions for testing purposes 2018-06-06 18:00:46 +02:00
zenon
52b5f0e361 Modify caller array instead of copy 2018-06-06 17:59:27 +02:00
zenon
a5c402bc84 Remove whitespace at EOL 2018-06-06 17:28:15 +02:00
zenon
9983d25742 Calculate index and add to feedback arc set 2018-06-06 17:25:30 +02:00
zenon
7382f0a43d findIndex() function added 2018-05-31 15:13:22 +02:00
zenon
1c913d4b82 Comments 2018-05-31 15:00:57 +02:00
zenon
0ae6626e32 Added algorithm for generating random permutations of the set of nodes 2018-05-31 12:17:25 +02:00
zenon
b43a600510 Shared memory and semaphore setup as well as correct free() calls 2018-05-30 17:22:26 +02:00
zenon
9219f8f097 Added free() calls 2018-05-21 18:32:21 +02:00
zenon
3a27588d6f Graph implementation and correct parsing of edges 2018-05-21 18:08:04 +02:00
zenon
c8a2c3435b Save program name 2018-05-21 15:46:34 +02:00
zenon
803888fbd0 Boilerplate 2018-05-21 15:41:48 +02:00
zenon
5999f4f951 Initial commit 2018-05-21 14:51:03 +02:00