Skip to content

Emcyz/thread-safe-counter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thread-safe-counter

OS Environment

  • Ubuntu 18.04

time

Screenshot from 2021-06-13 19-29-04 -Mutex (./a) : about 0.15s -Semaphore (./b) : about 5s

my analysis

Semaphore has too many statement of

  • declaring struct sembuf s
  • initializing and calculating elements of struct sembuf s

this is because Semaphore handle shared memory

instead, Mutex handle only the key of the door

my information

  • name : 이승욱
  • student id : 20173417
  • subject : Computer Architecture and Real-Time Operating System (1241501-01)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%