Search Header Logo

Python Threads

Authored by Mohamed Ibrahim

Computers, Professional Development, Instructional Technology

University

Used 9+ times

Python Threads
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python library runs a function as thread?

None

_threading

threading

thread

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does run() method is invoked?

By Thread.run()

By Thread.start()

By Thread.create()

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to terminate a blocking thread?

thread.stop() & thread.wait()

thread.stop()

thread.terminate()

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to identify a thread?

getThread()

None

getName()

get_ident()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the libraries in Python that support threads?

_threading

th

None

thread

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does global value mutation used for thread-safety?

via GIL (Global Interpreter Lock)

via Locking

via Mutex

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the method to retrieve the list of all active threads?

getList()

getThreads()

enumerate()

threads()

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?

Discover more resources for Computers