Multithreading

Multithreading

Professional Development

15 Qs

quiz-placeholder

Similar activities

How Well Do You Them?

How Well Do You Them?

Professional Development

10 Qs

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

business 1.4 revision

business 1.4 revision

KG - Professional Development

20 Qs

PLAL Agile Onboarding

PLAL Agile Onboarding

Professional Development

10 Qs

Digital Electronics (Weekend Assignment - 3)

Digital Electronics (Weekend Assignment - 3)

University - Professional Development

20 Qs

Technical Training

Technical Training

Professional Development

15 Qs

20764 - SQL - Mod 5 and 6

20764 - SQL - Mod 5 and 6

Professional Development

18 Qs

IoT

IoT

KG - Professional Development

11 Qs

Multithreading

Multithreading

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Ms STAFF

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?