Calling interrupt on a thread that it is in TIMED_WAITING or WAITING or BLOCKED state causes an interrupted exception? is that true?
or in simple words which are all the states in which if a thread is, , can cause interrupted exception on calling interrupt?
About Question enthuware.ocpjp.v17.2.3753 :
Moderator: admin
-
- Posts: 5
- Joined: Thu Dec 29, 2022 1:33 am
- Contact:
-
- Site Admin
- Posts: 10090
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3753 :
TIMED_WAITING or WAITING or BLOCKED
If you like our products and services, please help us by posting your review here.
-
- Posts: 5
- Joined: Thu Dec 29, 2022 1:33 am
- Contact:
-
- Posts: 1
- Joined: Mon Nov 27, 2023 5:20 am
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3753 :
I get that a thread that is running does not get a InterruptedException.
However in this question a interrupt is fired 300 mile seconds after T1 is started there must be something really weird going on if T1 is not always in waiting at that time.
Can I just not reason with these time frames.
However in this question a interrupt is fired 300 mile seconds after T1 is started there must be something really weird going on if T1 is not always in waiting at that time.
Can I just not reason with these time frames.
-
- Site Admin
- Posts: 10090
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3753 :
Not sure I understand your question. Can you please rephrase?
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 25 guests