Skip to content

The Dining_Philosepher_probleme: In this repository u will see the basics of threading a process and how to work on the same memory space

Notifications You must be signed in to change notification settings

zainabdnaya/Philosepher_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philosepher_42 🎉

In this repository u will see he basics of threading a process and how to work on the same memory space

What is MultiThreads? 🧵

Multithreading is a specialized form of multitasking
and a multitasking is the feature that allows your computer 
to run two or more programs concurrently.

Screen-Shot-2021-05-20-at-9-41-36-PM

What Are Threads? 📋

A thread is a small sequence of programmed instructions.
Threads refer to the highest level of code your processor can execute.

What The point of mutex ? 🎯

the point of a mutex is to synchronize two threads. 
When you have two threads attempting to access a single resource, the general pattern is to have the first block of code attempting access to set the mutex         before entering the code. 
When the second code block attempts access, it sees that the mutex is set and waits until the first block of code is complete (and unsets the mutex),
then  continues.

What is semaphores

Semaphore is simply a variable that is non-negative and shared between threads. This variable is used to solve the critical section problem and to achieve process synchronization in the multiprocessing environment.

About

The Dining_Philosepher_probleme: In this repository u will see the basics of threading a process and how to work on the same memory space

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published