ImplementingCVs.pdf
151.9 KB
--
Implementing Condition Variables with Semaphores
The paper discusses the implementation in C# but it is a straightforward translation to C/C++.
The reason I shared this paper is to show the thought process and the things people have to keep in mind when designing a solution for concurrency/parallel programming primitives.
All the kernels provide a semaphore as a primitive that can be used to build all the necessary primitives that a concurrency library provides.
Implementing Condition Variables with Semaphores
The paper discusses the implementation in C# but it is a straightforward translation to C/C++.
The reason I shared this paper is to show the thought process and the things people have to keep in mind when designing a solution for concurrency/parallel programming primitives.
All the kernels provide a semaphore as a primitive that can be used to build all the necessary primitives that a concurrency library provides.
π6
Undefined Behavior Sanitizer for C/C++ explained in depth:
https://maskray.me/blog/2023-01-29-all-about-undefined-behavior-sanitizer
If you want to learn what Undefined Behavior is, you can refer to a post earlier in this channel here.
https://maskray.me/blog/2023-01-29-all-about-undefined-behavior-sanitizer
If you want to learn what Undefined Behavior is, you can refer to a post earlier in this channel here.
MaskRay
All about UndefinedBehaviorSanitizer
Updated in 2025-01. UndefinedBehaviorSanitizer (UBSan) is an undefined behavior detector for C/C++. It consists of code instrumentation and a runtime. Both components have multiple independent impleme
π9
C/C++ Resources and FAQ pinned Β«List of books recommended for learning C (Beginners to Advanced) Beginner: C Programming - A Modern Approach Effective C Beej's Guide to C Programming - Free Online Book Intermediate Modern C 21st Century C - C tips from new school Advanced Linuxβ¦Β»
The Missing Semester of Your CS Education is a practical and hands-on computer science class that fills the gaps in traditional CS education. This course covers essential topics often overlooked in standard curriculum, empowering students and programmers to work efficiently and effectively within the computing ecosystem. Topics include mastering the command shell for task automation, harnessing version control for collaboration and problem-solving, optimizing text editing with advanced features, managing remote machines seamlessly, streamlining file searching, data wrangling from the command line, leveraging virtual machines for experimentation, and enhancing security practices online. With 12 engaging lectures and practical exercises, this class equips participants with indispensable skills to excel in the world of computer science and programming.
https://www.youtube.com/@MissingSemester/
https://www.youtube.com/@MissingSemester/
π30π1