waite
Uploaded by
1 SLIDES
190 VUES
10LIKES

Understanding Weak Ordering and Thread Management in Pthreads

DESCRIPTION

This lecture reviews essential concepts in relaxed memory consistency models, which include weak ordering, relaxed program order, and relaxed write atomicity. It delves into Pthreads, explaining how to compile Pthread programs, create new threads, and manage their lifecycles. Key questions addressed include the termination of threads, the behavior of parent and child threads, and the implications of calling exit() within a thread. This knowledge is crucial for developing concurrent applications that function reliably under various memory consistency conditions.

1 / 1

Télécharger la présentation

Understanding Weak Ordering and Thread Management in Pthreads

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript

Playing audio...

  1. Lecture 7 review • Weak ordering memory consistence • Relaxed memory consistence • Relaxed program order • Relaxed write atomicity • Pthread • How to compile a pthread program? • How to create a new thread? • When is a thread terminated? • Does parent thread get to run before the child thread? • What happens when we call exit() in a thread?

More Related