#Possible Race Condition?

29 messages · Page 1 of 1 (latest)

frank kiln
#

This is from an assignment I'm currently working on, the test case passes on certain iterations and fails sometimes. I've spent more then 3 hours trying to find out where I went wrong. Can someone please point me in the correct direction?

#

Possible Race Condition?

urban yarrow
#

Cause unless I just copied the wrong file, this is what I get

#

Ah nevermind, I did in fact mess up the copying

frank kiln
#

rerunning with the same test

#

results in varied outputs

#

sometimes it passes and sometimes it does not

urban yarrow
frank kiln
#

another example

urban yarrow
#

Yeah, the order is a little messed up, probbaly due to incorrect locking

frank kiln
#

yeah, the problem being i cant figure out for the life of me, where .

frank kiln
urban yarrow
#

bit hard to see rn, cause I'm only on my laptop and in the library.
I'll try to get back to it once I get to my big monitor at home

frank kiln
#

Oki OKi

urban yarrow
#

Idk, it's kinda awkward to read since it isn't even clearly marked what your code even is.
There's just a Start of provided code at the beginning and then suddenly it says Your Code ends here, which is really confusing.
On top of that there's a lot of stuff missing for anyone to be able to test-run this themselves.

Nice to see a fellow German though (figured you're one because of the Rechnernetze und Verteilte Systeme comment)

#

Although our course was called Grundlagen: Rechnernetze und Verteilte Systeme (or the most atrocious acronym: GRNVS)

frank kiln
#

yeah, I didn't send all of it.

#

It has other files and a test run case

#

It passes all the provided tests though

#

(threaded, unthreaded, wrap, nowrap simple and complex tests)

#

sometimes the third file isn't the same

#

sometimes the first isnt

#

file 1 again