The most complicated thing in the world to understand is concurrency. Not even Einstein's General Theory of Relativity comes close. Here is an interesting gem that I got from a newsletter quite some time ago. I found the puzzle incredibly interesting and it convinced me to NEVER EVER EVER EVER:
- Assume I understand concurrency.
- Use the old core Threading stuff rather than the new modern concurrency frameworks (i.e. Threading pools, etc.).
- Assume I understand concurrency.
- Skip testing threaded applications - because I'm clever, it makes sense... and besides I understand concurrency.
- Assume I understand concurrency.
Look at the following Rorotika-inspired class and tell me what happens. Keep careful track of all the delays.
No comments:
Post a Comment