Thread 2

Thread 2

University

7 Qs

quiz-placeholder

Similar activities

PEMBELAJARAN MULPEND BERBASIS INTERNET

PEMBELAJARAN MULPEND BERBASIS INTERNET

University

12 Qs

Edmodo (AKL 1)

Edmodo (AKL 1)

University

10 Qs

C++ 2nd Online Quiz

C++ 2nd Online Quiz

University

10 Qs

Bab 2 | Latihan Pengukuhan II

Bab 2 | Latihan Pengukuhan II

12th Grade - University

10 Qs

Chapter 8

Chapter 8

University

10 Qs

Operating System -Quiz-1

Operating System -Quiz-1

University

10 Qs

Programming

Programming

University

12 Qs

3D

3D

University

10 Qs

Thread 2

Thread 2

Assessment

Quiz

Computers

University

Hard

Created by

Jeevitha P

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What method in thread class do you call to make the current thread cease executing for a specified amount of time?

sleep()

pause()

stop()

wait()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many threads does a process contains?

1

2

multiple

none

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is not a thread state?

new

runnable

sleep

terminated

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which statements is/are correct

On calling Thread start () method a new thread get created.

Thread start () method call run () method internally

Thread run () method can also be called directly to create thread.

All correct

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which thread will be executed first if two threads have same priority

They will fall in starvation and none will be executed.

Both will be executed simultaneously

It depends upon operating system

They will be executed on first come first serve basis

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is used to create a daemon thread?

setDaemon(boolean value)

setThread(boolean value)

createDaemon(boolean value)

makeDeamon(boolean value)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is difference between starting thread with run() and start() method?

There is no difference

when you call start() method, main thread internally calls run() to start the newly created thread.

run() calls start() method internally

None of the above