1.
질문 1The Python 3 threading and multiprocessing libraries implement the same programming interface?
True.
Both the threading and multiprocessing implement the same functions, though the impact on the hardware is different.
2.
질문 2
Using threading, programs can acheive the same capabilities as with multiprocessing, including networking or outside of program context?
False.
Both parts of the statement are incorrect. Threads are not processes and have different capabilities. Also threading library cannot remote invoke the same process on a different machine over a network.
3.
질문 3Which is not part of the asyncio syntax?
del.
Del is part of the Python 3 syntax but does not belong to the asyncio library.
4.
질문 4Presuming that there is an async function called print_time, which of the following commands when used in the blank space in the statement below would be used to start and block for its completion:
___________________ print_time()
await.
await makes the calling thread wait for an async function to complete before proceeding.
5.
질문 5In the threading library, which single command executes one or more functions with arguments?
start_new_thread
The start_new_thread function takes the names of multiple functions and executes them asynchronously.
'Coursera' 카테고리의 다른 글
[GPU programming] Multidimensional Data and Computation on the GPU Quiz (0) | 2022.07.18 |
---|---|
[GPU programming] GPU Programming Quiz (0) | 2022.06.27 |
[GPU programming] Nvidia Software and Hardware Quiz (0) | 2022.06.26 |
[GPU programming] c++ Parallel Programming Quiz (0) | 2022.06.23 |
[GPU programming] thread in python (0) | 2022.06.22 |