C
C#2mo ago
Lordzipzap

Synchronization error, with threads

Hi i am busy with a small project, and i am stuck at some sycnhronization issue with my threads. I fresh mind would be appreciated highly!
7 Replies
tera
tera2mo ago
$details
MODiX
MODiX2mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Lordzipzap
Lordzipzap2mo ago
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) I use dotnet6
SleepWellPupper
SleepWellPupper2mo ago
So what's your synchronization issue? $code would help as well
MODiX
MODiX2mo ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
Lordzipzap
Lordzipzap2mo ago
I think there is an synchronization issue The problem is that, Because my clerk is not finishing there is an mismatch in records I will share some code
Lordzipzap
Lordzipzap2mo ago
BlazeBin - jtsupzbbotpz
A tool for sharing your source code with the world!