Quiz: MultiThreading vs. Multiprocessing
1
Consider the line of code below:
process = threading.Thread(target=gen_data)
Which of the following options correctly describes the above line of code?
A)
threading.Thread
creates a thread. target
is the name of the library we want to call. In our case, it’s gen_data
.
B)
threading.Thread
creates a process. target
is the name of the function we want to call. In our case, it’s gen_data
.
C)
threading.Thread
creates a thread. target
is the name of the function we want to call. In our case, it’s gen_data
.
D)
threading.Thread
is assigns a thread to a process. target
is the name of the class used to assign a thread to a process. In our case, it’s gen_data
.
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.