#90 Thread States in Java

  Рет қаралды 60,299

Telusko

Telusko

Күн бұрын

Пікірлер: 9
@udayy4448
@udayy4448 11 ай бұрын
This was really helpful. Thanks very much Navin!
@aileenchan3741
@aileenchan3741 Жыл бұрын
This channel is the best! Thank you so much for sharing your knowledge. Today I learned about threads, multithreading, thread states... phew! : )
@akashchoudhary9161
@akashchoudhary9161 Жыл бұрын
sir you escaped the multithreading inter thread comunication concept... any reason?
@dragnar4743
@dragnar4743 8 ай бұрын
So, runnable state is basically saying to the scheduler that the thread is ready for execution. That makes sense, why after sleep(), the thread goes to runnable instead of running. Because, after sleep() the thread is again gets ready for the schedular to pick it up and put it in running state.
@animefreak6724
@animefreak6724 8 ай бұрын
When a thread calls the sleep() method, it enters a "timed waiting" state. This means the thread voluntarily gives up the CPU for at least the specified amount of time. After that time has passed, the thread moves back to the "runnable" state, indicating that it is ready to run again but is waiting for the scheduler to allocate CPU time. The reason threads don't immediately go from "runnable" to "running" after sleep() is because the scheduler still needs to determine when to allocate CPU time to that thread based on its priority, the presence of higher-priority threads, and other scheduling policies.
@dragnar4743
@dragnar4743 8 ай бұрын
@@animefreak6724 yup, exactly
@96fan322
@96fan322 Жыл бұрын
I want to become a app developer, Present I know Java basics Can you tell what to learn
@svedits7567
@svedits7567 Жыл бұрын
basics are not enough for android development. You have to learn the features of Android Studio. How views, Layouts etc etc work. I'd recommend you take an android development course in java or kotlin
#91 Collection API in Java
4:49
Telusko
Рет қаралды 114 М.
#85 Threads in Java
5:13
Telusko
Рет қаралды 187 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 29 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 41 МЛН
#89 Race Condition in Java
12:30
Telusko
Рет қаралды 81 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 214 М.
THREAD LIFE CYCLE - JAVA PROGRAMMING
9:21
Sundeep Saradhi Kanthety
Рет қаралды 174 М.
C# multithreading 🧶
6:59
Bro Code
Рет қаралды 166 М.
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 40 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 981 М.
ThreadLocal in Java
10:59
Defog Tech
Рет қаралды 188 М.
Thread Life Cycle
12:31
Durga Software Solutions
Рет қаралды 207 М.