Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien
logo-home
Seminarie 4 OSPP (1) €7,36   Ajouter au panier

Examen

Seminarie 4 OSPP (1)

 9 vues  0 achat
  • Cours
  • Établissement

Seminarie 4 OSPP (1)

Aperçu 1 sur 3  pages

  • 11 août 2024
  • 3
  • 2024/2025
  • Examen
  • Questions et réponses
avatar-seller
Seminarie 4 OSPP
Creating new threads is less time consuming and less resource intensive compared to creating
new processes. Threads share a PMI (process memory image) within a process, while
processes run on different memory segments. Threads run within a process.
Threads share data, processes don't (easily) share data.
Threads share everything in the PMI but not the stack and context. - ANS-How do threads differ
from processes?

Creating a new thread within a program does not create a new PMI.
Because threads share the same memory, context switching is more efficient than between
processes. - ANS-Why is it more expensive to create a new process compared to creating a
new thread?

Many user-level threads mapped to a single kernel thread* . Thread management is done by the
thread library in user space.
*Threads mapped to a single kernel thread meaning they are scheduled as a single process by
CPU. - ANS-In short, explain the many-to-one user level thread model.

Thread management is done by the thread library in user space but the entire process will block
if a thread makes a blocking system call. Only one thread can access the kernel at a time,
hence threads cannot run in parallel on multiprocessors. ONE BLOCKS ALL - ANS-Explain
what happens if one of the threads makes a blocking system call in the many-to-one user level
thread model.

Atomic operations in concurrent programming are program operations that run completely
independently of any other processes
An atomic operation is an operation that will always be executed without any other process
being able to read or change state that is read or changed during the operation
‣ Additionally, atomic operations commonly have a succeed-or-fail definition—they either
successfully change the state of the system, or have no apparent effect. - ANS-What is meant
by an atomic operation?

counter = counter + 1 - ANS-Give examples of non-atomic operations

A race condition or race hazard is the behaviour of an electronic, software or other system
where the output is dependent on the sequence or timing of other uncontrollable events. It
becomes a bug when events do not happen in the intended order. - ANS-Define Race condition

A data race occurs when two instructions from different threads access the same memory
location and:
‣ at least one of these accesses is a write

Les avantages d'acheter des résumés chez Stuvia:

Qualité garantie par les avis des clients

Qualité garantie par les avis des clients

Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.

L’achat facile et rapide

L’achat facile et rapide

Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.

Focus sur l’essentiel

Focus sur l’essentiel

Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.

Foire aux questions

Qu'est-ce que j'obtiens en achetant ce document ?

Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.

Garantie de remboursement : comment ça marche ?

Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.

Auprès de qui est-ce que j'achète ce résumé ?

Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur topgradesdr. Stuvia facilite les paiements au vendeur.

Est-ce que j'aurai un abonnement?

Non, vous n'achetez ce résumé que pour €7,36. Vous n'êtes lié à rien après votre achat.

Peut-on faire confiance à Stuvia ?

4.6 étoiles sur Google & Trustpilot (+1000 avis)

73314 résumés ont été vendus ces 30 derniers jours

Fondée en 2010, la référence pour acheter des résumés depuis déjà 14 ans

Commencez à vendre!
€7,36
  • (0)
  Ajouter