GSoC 2025 Final Report: Implementing POSIX Issue 8 Functions in RTEMS

GSoC 2025 Final Report: Implementing POSIX Issue 8 Functions in RTEMS Project Summary My Google Summer of Code 2025 project focused on enhancing RTEMS’ POSIX compliance by implementing critical functions introduced in POSIX Issue 8. RTEMS (Real-Time Executive for Multiprocessor Systems) is a real-time operating system designed for embedded and mission-critical applications, including space exploration and aerospace systems. The goal of this project was to analyze, implement, and thoroughly test missing POSIX Issue 8 APIs to bring RTEMS closer to full POSIX compliance, enabling better portability and functionality for real-time applications. ...

August 28, 2025

Time APIs in C: A Deep Dive into timespec_get() and Modern Time Retrieval Methods

Time APIs in C: From time() to timespec_get() Time measurement in computing has evolved from simple second-based timestamps to high-precision APIs. This guide covers the main time functions available in C, focusing on timespec_get() - a C11 standard function and its implementation in real-time systems. Why Multiple Time APIs? Time measurement serves different purposes: file timestamps, process scheduling, timeouts, performance measurement, and real-time applications. Each use case has different precision and reliability requirements, leading to multiple APIs optimized for specific needs. ...

August 17, 2025

Pthread RWLock Internals: How Reader-Writer Lock Clock Functions Work

Understanding Pthread Reader-Writer Lock Clock Functions from the Inside In this blog post, we’ll explore how pthread reader-writer lock synchronization primitives work internally, focusing on the clock-aware variants. We’ll dive deep into the RTEMS implementation to understand how pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock work under the hood. Why Reader-Writer Locks with Clock Support? Reader-writer locks (RWLocks) are a powerful synchronization primitive that allows multiple readers to access a resource simultaneously, while ensuring exclusive access for writers. The clock-aware variants (pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock) add precise timeout control with different clock types, providing more robust and predictable timeout behavior. ...

July 16, 2025

GSoC 2025 Midterm Evaluation: Implementing POSIX Issue 8 Functions in RTEMS

GSoC 2025 Midterm Evaluation: Implementing POSIX Issue 8 Functions in RTEMS As I reach the midpoint of my Google Summer of Code 2025 journey with RTEMS, I’m excited to share the progress I’ve made on implementing POSIX Issue 8 functions. This project aims to enhance RTEMS’ POSIX compliance by adding support for new functions introduced in the latest POSIX standard. Project Overview My GSoC project focuses on implementing and testing 8 key POSIX Issue 8 functions in RTEMS: ...

July 16, 2025