Pages

17 Desember 2010

Deadlock

Do you know about the deadlock?

In one block, something locks itself to do some works; but before or inside it there are several conditions which wait another thread to do.

And another thread, has certain requirement before it does its work.

Then....so dead in there. Nothing is executed.

Similiar.
Yes for this; which locks & waits.
And yes for that; which asks the requirement as always.

And now.......how if this is as same as time slices? Walking on the parallel line, doing its own task in the same time. Because this is so close, but never approaching each other.
Unreachable.




Inspired by Programming lecture, on Multithreading chapter.