About Question enthuware.ocpjp.v17.2.3753 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
shwetagulati
Posts: 5
Joined: Thu Dec 29, 2022 1:33 am
Contact:

About Question enthuware.ocpjp.v17.2.3753 :

Post by shwetagulati »

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?

admin
Site Admin
Posts: 10024
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v17.2.3753 :

Post by admin »

TIMED_WAITING or WAITING or BLOCKED
If you like our products and services, please help us by posting your review here.


mellester
Posts: 1
Joined: Mon Nov 27, 2023 5:20 am
Contact:

Re: About Question enthuware.ocpjp.v17.2.3753 :

Post by mellester »

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.

admin
Site Admin
Posts: 10024
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v17.2.3753 :

Post by admin »

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests