Lordzipzap
Synchronization error, with threads
Situation is as follow:
I have a library system where there is a clerk and a customer.
There is a linkedlist. With books
I specify the amount of n_threads(customer, clerks, book)
Then i made it concurrent so that a clerk can place a book on the counter(linkerlist) and a customer can pick that book up and when done the customer can drop it on the dropzone(linkedlist)
The clerk then checks de dropzone and place it back in the records(library)
11 replies