Multithreading

Multithreading

Professional Development

15 Qs

quiz-placeholder

Similar activities

2k16_Embedded_Module_3

2k16_Embedded_Module_3

Professional Development

20 Qs

Linux Managing Systems

Linux Managing Systems

Professional Development

20 Qs

Quiz

Quiz

1st Grade - Professional Development

10 Qs

WCF Day9-Multithreading

WCF Day9-Multithreading

Professional Development

10 Qs

APP Unit3

APP Unit3

Professional Development

20 Qs

Zendesk Dev

Zendesk Dev

Professional Development

12 Qs

Exercise No 1-Intro to Java

Exercise No 1-Intro to Java

Professional Development

10 Qs

Advanced Java

Advanced Java

Professional Development

15 Qs

Multithreading

Multithreading

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Ms STAFF

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to start a thread in Java?

run()

begin()

start()

execute()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is called when a thread is started?


start()

run()

execute()

init()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to pause the execution of a thread for a specified time?


sleep()

wait()

yield()

join()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will cause a thread to release the lock it holds?


sleep()

yield()

wait()

run()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you call start() on a thread object that has already been started?

It runs normally

It does nothing

It throws IllegalThreadStateException

It calls run() again

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which state is a thread in when it is waiting to acquire a lock held by another thread?

RUNNABLE

WAITING

BLOCKED

NEW

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a valid thread state?


NEW

RUNNABLE

DEAD

EXECUTING

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?