Tag

sleep

0 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Nov 1, 2023 · Fundamentals

Differences and Similarities between wait() and sleep() in Java

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.

ConcurrencyJavaSynchronization
0 likes · 4 min read
Differences and Similarities between wait() and sleep() in Java
Byte Quality Assurance Team
Byte Quality Assurance Team
Sep 1, 2021 · Backend Development

Using Polling Instead of Sleep in Python for Asynchronous Tasks

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.

AsynchronousPollingPython
0 likes · 7 min read
Using Polling Instead of Sleep in Python for Asynchronous Tasks
Selected Java Interview Questions
Selected Java Interview Questions
Mar 30, 2020 · Backend Development

Understanding Java Thread States and Synchronization Methods: wait/notify, sleep/yield, and join

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.

ConcurrencyJoinSynchronization
0 likes · 15 min read
Understanding Java Thread States and Synchronization Methods: wait/notify, sleep/yield, and join
Wukong Talks Architecture
Wukong Talks Architecture
Apr 27, 2019 · Fundamentals

C# Multithreading Basics: Introduction, Join, Sleep, and Thread Safety

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.

CJoinThread Safety
0 likes · 12 min read
C# Multithreading Basics: Introduction, Join, Sleep, and Thread Safety
Wukong Talks Architecture
Wukong Talks Architecture
Apr 26, 2019 · Fundamentals

C# Multithreading Basics: Introduction, Join, Sleep, and Thread Safety

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.

CConcurrencyJoin
0 likes · 10 min read
C# Multithreading Basics: Introduction, Join, Sleep, and Thread Safety