Multithreading

Multithreading

Professional Development

15 Qs

quiz-placeholder

Similar activities

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

Digital Technology Office 365 - 29May2020

Digital Technology Office 365 - 29May2020

University - Professional Development

13 Qs

Email of request

Email of request

12th Grade - Professional Development

11 Qs

Trg@home 1

Trg@home 1

Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

U.T. 7: Configuración de Routers y Encaminamiento

U.T. 7: Configuración de Routers y Encaminamiento

Professional Development

20 Qs

Mothers Competition

Mothers Competition

Professional Development

10 Qs

NM-BIG DATA Course

NM-BIG DATA Course

Professional Development

20 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?