Test
os 4
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (25)
1____ is a thread library for Solaris that maps many user-level threads to one kernel thread.
- APthreads
- BGreen threads
- CSthreads
- DJava threads
2Pthreads refers to ____.
- Athe POSIX standard.
- Ban implementation for thread behavior.
- Ca specification for thread behavior.
- Dan API for process creation and synchronization.
3The ____ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads.
- Amany-to-one model
- Bone-to-one model
- Cmany-to-many model
- Dmany-to-some model
4Cancellation points are associated with ____ cancellation.
- Aasynchronous
- Bdeferred
- Csynchronous
- Dnon-deferred
5Which of the following would be an acceptable signal handling scheme for a multithreaded program?
- ADeliver the signal to the thread to which the signal applies.
- BDeliver the signal to every thread in the process.
- CDeliver the signal to only certain threads in the process.
- DAll of the above
6Signals can be emulated in windows through ____.
- Aasynchronous procedure calls
- Blocal procedure calls
- Cremote procedure calls
- Dnone of the above
7Thread-local storage is data that ____.
- Ais not associated with any process
- Bhas been modified by the thread, but not yet updated to the parent process
- Cis generated by the thread independent of the thread's process
- Dis unique to each thread
8LWP is ____.
- Ashort for lightweight processor
- Bplaced between system and kernel threads
- Cplaced between user and kernel threads
- Dcommon in systems implementing one-to-one multithreading models
9Windows uses the ____.
- Aone-to-one model
- Bmany-to-one model
- Cone-to many-model
- Dmany-to-many model
10In multithreaded programs, the kernel informs an application about certain events using a procedure known as a(n) ____.
- Asignal
- Bupcall
- Cevent handler
- Dpool
11_____ is not considered a challenge when designing applications for multicore systems.
- ADeciding which activities can be run in parallel
- BEnsuring there is a sufficient number of cores
- CDetermining if data can be separated so that it is accessed on separate cores
- DIdentifying data dependencies between tasks.
12A ____ provides an API for creating and managing threads.
- Aset of system calls
- Bmulticore system
- Cthread library
- Dmultithreading model
13The _____ model multiplexes many user-level threads to a smaller or equal number of kernel threads.
- Amany-to-many
- Btwo-level
- Cone-to-one
- Dmany-to-one
14The _____ model maps many user-level threads to one kernel thread.
- Amany-to-many
- Btwo-level
- Cone-to-one
- Dmany-to-one
15The _____ model maps each user-level thread to one kernel thread.
- Amany-to-many
- Btwo-level
- Cone-to-one
- Dmany-to-one
16The _____ model allows a user-level thread to be bound to one kernel thread.
- Amany-to-many
- Btwo-level
- Cone-to-one
- Dmany-to-one
17The most common technique for writing multithreaded Java programs is _____.
- Aextending the Thread class and overriding the run() method
- Bimplementing the Runnable interface and defining its run() method
- Cdesigning your own Thread class
- Dusing the CreateThread() function
18In Pthreads, a parent uses the pthread_join() function to wait for its child thread to complete. What is the equivalent function in Win32?
- Awin32_join()
- Bwait()
- CWaitForSingleObject()
- Djoin()
19Which of the following statements regarding threads is false?
- ASharing is automatically provided in Java threads.
- BBoth Pthreads and Win32 threads share global data.
- CThe start() method actually creates a thread in the Java virtual machine.
- DThe Java method join() provides similar functionality as the WaitForSingleObject in Win32.
20A _____ uses an existing thread — rather than creating a new one — to complete a task.
- Alightweight process
- Bthread pool
- Cscheduler activation
- Dasynchronous procedure call
21According to Amdahl's Law, what is the speedup gain for an application that is 60% parallel and we run it on a machine with 4 processing cores?
- A1.82
- B.7
- C.55
- D1.43
22_________ involves distributing tasks across multiple computing cores.
- AConcurrency
- BTask parallelism
- CData parallelism
- DParallelism
23___________ is a formula that identifies potential performance gains from adding additional computing cores to an application that has a parallel and serial component.
- ATask parallelism
- BData parallelism
- CData splitting
- DAmdahl's Law
24When OpenMP encounters the #pragma omp parallel directive, it
- Aconstructs a parallel region
- Bcreates a new thread
- Ccreates as many threads as there are processing cores
- Dparallelizes for loops
25Grand Central Dispatch handles blocks by
- Aplacing them on a dispatch queue
- Bcreating a new thread
- Cplacing them on a dispatch stack
- Dconstructing a parallel region
Información
- Descripción
- Test sobre os 4, creado por Adam Whiteside el 24/04/2019.
- Autor
- Adam Whiteside
- Idioma
- English
- Visitas
- 73
- Valoración
- Aún sin valoraciones Valora este test