Posts

Showing posts from April, 2011

File Locking

File locking example

Interviewing developers

Some developers can't code

Thread dump example

2011-04-12 09:18:25 Full thread dump OpenJDK 64-Bit Server VM (19.0-b09 mixed mode): "Attach Listener" daemon prio=10 tid=0x0000000000b0d000 nid=0x33ef waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "DestroyJavaVM" prio=10 tid=0x00007f3a2408d000 nid=0x3391 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "File I/O" prio=10 tid=0x00007f3a2408b800 nid=0x33a2 runnable [0x00007f3a3157e000] java.lang.Thread.State: RUNNABLE at java.io.FileInputStream.read(Native Method) at ThreadDumpTest$4.run(ThreadDumpTest.java:97) at java.lang.Thread.run(Thread.java:636) "Blocked" prio=10 tid=0x00007f3a24081000 nid=0x33a1 waiting for monitor entry [0x00007f3a3167f000] java.lang.Thread.State: BLOCKED (on object monitor) at ThreadDumpTest$3.run(ThreadDumpTest.java:74) - waiting to lock (a java.lang.Object) at java.lang.Thread.run(Thread.java:636) "Blocking" prio=10 tid=0x00007f3a2407f00...