Python Multi-Threading

Python Multi-Threading

Assessment

Quiz

Computers

University

Hard

Created by

Assistant Chennai

Used 9+ times

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the Correct statement about multi-threading.

It is the ability of a processor to execute multiple threads concurrently

It allows the program to speed up the execution

Threads within the same process can share the memory and resources of the main thread.

Multiple threads work together to achieve a common goal

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A process can be ___________

single threaded

multithreaded

both single threaded and multithreaded

none of the mentioned

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What the two different types of thread?

Kernel thread

Device thread

User thread

Network thread

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are the two modules in python 3.x used for thread implementation?

_thread

threading

__thread

__Threading

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns the count of active threads in the caller's thread control?

threading.activeCount()

threading.currentThread()

threading.enumerate()

All the above

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the correct statement to create a new thread in python 3.x using thread module

thread.start_new_thread ( function, args[, kwargs] )

-thread.start_new_thread ( function, args[, kwargs] )

_thread.start_new_thread ( function, args[, kwargs] )

thread.new_thread ( function, args[, kwargs] )