#Need some hints with semaphores and threading in (CLOSE TO SOLVING)

1 messages · Page 1 of 1 (latest)

burnt auroraBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

quasi knoll
#

I say I am close to figuring it out because I know what the issue is

#

when I encounter 2 odd threads in a row (there are 4 in a row in the text file), the code unlocks the even semaphore twice but keeps the odd semaphore locked.

This leads to a deadlock where the code just pauses and does not end

quasi knoll
#

!solved

burnt auroraBOT
#

Thank you and let us know if you have any more questions!