Tagged articles
wait
12 articles · Page 1 of 1
Because wait() first releases the monitor, the calling thread must own the lock; the JVM enforces this with an IllegalMonitorStateException, and the synchronized block prevents the lost‑wake‑up race by atomically checking conditions and releasing the lock before waiting.
JavaSynchronizedmonitor
0 likes · 10 min read

This article explains how Linux processes are created, managed, and replaced using the fork, wait (including waitpid), and exec system calls, covering their prototypes, return values, copy‑on‑write optimization, and practical C code examples that demonstrate their coordinated use in real‑world scenarios.
Linuxc-programmingexec
0 likes · 25 min read

This article explains the Linux zombie process concept, shows how they are created when a parent neglects wait(), demonstrates the issue with sample C code and ps output, discusses the risks of PID exhaustion, and provides proper handling techniques using wait() and process reaping.
Linuxforkwait
0 likes · 7 min read

This guide explains why zombie processes appear in Linux, demonstrates how to reproduce them with sample code, shows how to identify them using ps, discusses the system risks they pose, and provides proper cleanup techniques using wait/waitpid and parent termination.
LinuxSystem Programmingwait
0 likes · 7 min read

Both wait() and sleep() can pause a thread and enter waiting states, but wait() belongs to Object and requires synchronized blocks, releases the monitor lock, and must handle spurious wakeups, whereas sleep() is a Thread method that does not release locks and has simpler usage.
ConcurrencyJavaSleep
0 likes · 4 min read

This comprehensive guide walks through Linux process creation with fork, explains its return values and copy‑on‑write behavior, covers normal and abnormal termination using return, exit and _exit, details waiting with wait/waitpid, and demonstrates program replacement via exec functions and a simple custom shell.
Linuxc-programmingexec
0 likes · 25 min read

This article explains Java multithreading safety issues, demonstrates synchronized methods, blocks, static methods, mutex locks, deadlock scenarios, and the differences between wait() and sleep() with clear code examples and analysis of their effects on thread execution.
ConcurrencyJavaMultithreading
0 likes · 12 min read

This guide explains how to use the Linux sleep and wait commands for pausing execution, specifying time units, handling sub‑second intervals, running periodic tasks, and synchronizing background processes, complete with practical Bash examples and detailed explanations.
LinuxSleepbash
0 likes · 5 min read

This tutorial explains Linux process concepts, how to view and identify processes, the differences between programs and processes, and provides detailed examples of using fork, vfork, wait, exec family functions, system, and popen to create, control, and monitor child processes, including handling zombies and orphans.
System Programmingexecfork
0 likes · 29 min read

This article explains Selenium automation fundamentals, including its components, cross‑browser testing capabilities, best practices for locators, data‑driven testing, avoiding driver dependencies, selector ordering, PageObject pattern, proper use of waits versus sleeps, and tips for configuring Firefox profiles.
automated testingcross‑browserlocator strategies
0 likes · 9 min read

This article explains the Linux wait command, how it monitors and synchronizes processes by returning exit statuses, and provides step‑by‑step script examples that demonstrate waiting for background jobs versus running them without wait, highlighting key differences and practical usage.
Linuxbashprocess synchronization
0 likes · 5 min read


ITPUBFeb 27, 2020 · Fundamentals
This guide explains how the Linux wait command pauses script execution until specified processes or jobs finish, details its PID/JID options, exit‑status conventions, and provides step‑by‑step script examples that illustrate proper usage versus omitting wait.
process synchronizationwait
0 likes · 5 min read
