Warning: session_start(): open(/var/lib/php/sessions/sess_9sbrn2kv9av2r102lt6mkq6ab9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
static new O a;
static new O b;
p-tt {
centerHigherConsole();
startDeadlockDetector();
print("Initiating deadlock... :-)");
thread "A" {
synchronized(a) {
print("Thread A has lock A.");
sleep1Second();
print("Thread A getting lock B.");
synchronized(b) {
print("Thread A sleeping.");
main.sleep();
}
}
}
thread "B" {
synchronized(b) {
print("Thread B has lock B.");
sleep1Second();
print("Thread B getting lock A.");
synchronized(a) {
print("Thread B sleeping.");
main.sleep();
}
}
}
sleepQuietly();
}