Fresher Java Interview Question Answer Different Thread States Explain Runnable,Running,Blocked,Wait

Опубликовано: 30 Декабрь 2013
на канале: Interview DOT
263
0

Click here -    / @interviewdot   to get notifications. Fresher Java Interview Question Answer Different Thread States Explain Runnable,Running,Blocked,Wait

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...

Once a new thread is started, it will always enter the runnable state.

The thread scheduler can move a thread back and forth between the
runnable state and the running state.

For a typical single-processor machine, only one thread can be running at a
time, although many threads may be in the runnable state.

There is no guarantee that the order in which threads were started
determines the order in which they'll run.

There's no guarantee that threads will take turns in any fair way. It's up
to the thread scheduler, as determined by the particular virtual machine
implementation. If you want a guarantee that your threads will take turns
regardless of the underlying JVM, you can use the sleep method.

A running thread may enter a blocked/waiting state by a wait, sleep,
or joincall.


На этой странице сайта вы можете посмотреть видео онлайн Fresher Java Interview Question Answer Different Thread States Explain Runnable,Running,Blocked,Wait длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Interview DOT 30 Декабрь 2013, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 263 раз и оно понравилось 0 зрителям. Приятного просмотра!