Про многопоточность. Борода, но забавно.
This example shows a fundamental problem with using threads. You
never know when a thread might be run. Imagine sitting at a table with a
fork, about to spear the last piece of food on your plate and as your fork
reaches for it, the food suddenly vanishes (because your thread was
suspended and another thread came in and stole the food). That’s the
problem that you’re dealing with when writing concurrent programs.
Bruce Eckel, Thinking in Java 3ed
СвиноДемон с тёмной стороны: ИДИ КА МНЕ!!! БУХАХА!!!
|
|
Azzie 2007-01-23 09:51:47
|