Tagged articles
Sleep
17 articles · Page 1 of 1
This article traces the complete lifecycle of a Java thread from new Thread() through start() to sleep and interrupt, revealing how the JVM creates OS threads via C++ JavaThread and OSThread objects, and demonstrating the 1:1 thread model with executable verification code.
1:1 Thread ModelConcurrencyInterrupt
0 likes · 13 min read

Recent large‑scale studies reveal that diet, physical activity, and sleep quality drive systemic inflammation, which in turn fuels anxiety and depression, and that digital‑health platforms using multimodal AI can personalize interventions to rebuild emotional resilience.
AISleepdiet
0 likes · 11 min read

Processes must pause execution to wait for resources, and the Linux kernel provides sleep and wake mechanisms—implemented via functions like schedule_timeout_interruptible and try_to_wake_up—to efficiently relinquish CPU time, avoid busy‑waiting, and resume when resources become ready.
Linux kernelProcess SchedulingSleep
0 likes · 10 min read

Processes represent execution contexts that include code and resources; to avoid wasteful busy‑waiting, operating systems let them sleep and later wake them, using mechanisms like schedule_timeout_interruptible, timers, and try_to_wake_up, which the Linux kernel implements through specific state changes and scheduling logic.
Linux kernelProcess SchedulingSleep
0 likes · 10 min read

This guide explains why Ubuntu locks the screen after a few minutes of idle and provides three practical methods—adjusting power settings, using the Caffeine app, and editing UPower configuration—to prevent automatic sleep, along with step‑by‑step commands and warnings about energy efficiency.
CaffeineSleepUPower
0 likes · 4 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 article explains Linux process states, how the scheduler puts a running task to sleep with TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE, how wake_up_process() restores TASK_RUNNING, why invalid wakeups occur due to race conditions, and the kernel techniques used to prevent them.
LinuxSleepkernel
0 likes · 11 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

The article explains why fixed sleep calls are inefficient for asynchronous operations, introduces polling as a flexible alternative, provides Python code examples with the polling library, discusses advantages and disadvantages, and presents decorator and generic‑function abstractions for reusable polling logic.
DecoratorPollingPython
0 likes · 7 min read

This article explains Java thread lifecycle states, demonstrates how to use wait, notify, and notifyAll for inter‑thread coordination, compares sleep, yield, and join methods with practical code examples, and highlights important considerations such as monitor ownership and thread scheduling.
SleepSynchronizationwait-notify
0 likes · 15 min read

This article introduces C# multithreading concepts, covering thread creation, memory isolation, data sharing, thread safety with locks, and the use of Join and Sleep methods, while providing clear code examples and explanations of how threads are scheduled and interact with the CPU.
C++SleepThread
0 likes · 12 min read

This article introduces C# multithreading concepts, demonstrates thread creation, memory isolation, data sharing, thread safety with locks, and explains the use of Join and Sleep methods, providing practical code examples and best‑practice guidance for concurrent programming.
C++ConcurrencyLock
0 likes · 10 min read


ITPUBOct 22, 2017 · Fundamentals
This article explains the purpose and mechanics of process sleep in the Linux kernel, detailing how wait queues and wake‑up functions operate, why sleeping in atomic contexts such as interrupt handlers or while holding spinlocks is unsafe, and demonstrates the resulting deadlock with a sample driver.
Linux kernelSleepinterrupt context
0 likes · 16 min read


ITPUBJul 14, 2017 · Operations
This article explains the Linux kernel's process sleep and wake‑up mechanisms, distinguishes interruptible and uninterruptible states, demonstrates how race conditions cause invalid wakeups, and provides concrete code patterns and kernel examples to avoid such bugs.
Process SchedulingSleepinvalid wakeup
0 likes · 11 min read

A backend process that reports CPU and memory every 10 seconds missed occasional reports on Windows because the Sleep function oversleeps by up to one scheduler time slice, a problem solved by adjusting timing or using higher‑precision wait mechanisms such as Event.wait on Linux.
APSchedulerC++Python
0 likes · 9 min read


ITPUBSep 16, 2016 · Fundamentals
This article explains the purpose and mechanics of process sleep in the Linux kernel, describes how wait queues and wake‑up functions operate, and details why sleeping in interrupt context or while holding spinlocks, seqlocks, or RCU locks leads to deadlocks and system crashes.
InterruptLinuxSleep
0 likes · 16 min read
