Friday, February 11, 2011

Multi-threading and the problem of race conditions

So, this week was the week where we needed to deliver the first prototype of our third year project. Until Wednesday, everything was going smoothly, without any bug or issues. But, when came the time to actually try the light client (the part of the software that would allow us to chat using a PDA), nothing was working as intended and I started to panic. Gabriel Royer, one of my teammate helped me out by going through every issue one at a time.  I needed i was panicked, my only responsability was a failure!


After one hour, i had to leave for work but not everything was solved so, I told myself that i would stay the night if needed to solve all this. However, while i was working, 2 of my teammates continued to debug and were able to solve every problem, me panicking really helped nothing.


In the end,  the problem wasn't even entirely my fault! Imagine my reflief, when the next day they told me that the problem was actually race conditions in the network that caused the application to not behave as intended on the PDA while it worked just fine in the emulator

No comments:

Post a Comment