This channel is the best! Thank you so much for sharing your knowledge. Today I learned about threads, multithreading, thread states... phew! : )
@akashchoudhary9161 Жыл бұрын
sir you escaped the multithreading inter thread comunication concept... any reason?
@dragnar47438 ай бұрын
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.
@animefreak67248 ай бұрын
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.
@dragnar47438 ай бұрын
@@animefreak6724 yup, exactly
@96fan322 Жыл бұрын
I want to become a app developer, Present I know Java basics Can you tell what to learn
@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