Inter-Process Communication in C: Pipes and Message Queues

Inter-Process Communication in C: Pipes and Message Queues

Inter-Process Communication in C: Pipes and Message Queues In operating systems, a process is the basic unit of resource allocation, and inter-process communication (IPC) refers to the mechanisms that allow different processes to exchange data and information. The C language provides several ways to implement IPC, with the two most commonly used methods being pipes … Read more

Using Message Queues in Embedded Development with MCU

Using Message Queues in Embedded Development with MCU

In this era of information explosion, learning has never been more important. Last time, we explored task management in FreeRTOS, and today, we will delve into the mysteries of message queues in FreeRTOS, adding valuable knowledge to your repository.Have you ever been confused about message queues in FreeRTOS but struggled to find answers? Don’t worry, … Read more

Detailed Explanation of FreeRTOS Task Management and Communication Mechanisms

Detailed Explanation of FreeRTOS Task Management and Communication Mechanisms

1 Task Creation and Management Task Creation Use <span>xTaskCreate()</span> to create a task: BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, // Task function (entry) const char * const pcName, // Task name (for debugging) configSTACK_DEPTH_TYPE usStackDepth, // Stack size (in words) void * const pvParameters, // Task parameters UBaseType_t uxPriority, // Priority (0~configMAX_PRIORITIES-1) TaskHandle_t * const pxCreatedTask // … Read more

Intertask Communication in the Embedded Operating System uCOS-II: A Detailed Sharing

Intertask Communication in the Embedded Operating System uCOS-II: A Detailed Sharing

For more exciting content, please click the blue text above to follow me! When using the uCOS-II operating system for embedded development, one must accept the new term “task”. From the beginning to the end of the uCOS-II textbook, there is no clear definition of “task”, which leads to confusion about what a task is … Read more

Differences Between Circular Queue and Message Queue in RTOS

Differences Between Circular Queue and Message Queue in RTOS

Original from WeChat Official Account | Embedded Column “Circular queue” and “message queue” are widely used in the embedded field, and experienced embedded software engineers are likely familiar with them. However, beginners often have related questions. Today, I will share some content about “circular queues” and “message queues”. Circular Queue A circular queue is a … Read more

Python-ds: A Powerful Python Library for Data Structures

Python-ds: A Powerful Python Library for Data Structures

What is python-ds? First, let’s understand what python-ds is. Python-ds is a Python library designed to simplify and enhance data structure operations. It provides a rich set of data structures, including linked lists, stacks, queues, graphs, hash tables, and more, along with methods for operating on these structures, greatly reducing the workload of manually implementing … Read more

Basics of Embedded μC/OS-II System

Basics of Embedded μC/OS-II System

Wu Jianying Microcontroller Development Board Address Shop:【Wu Jianying’s Shop】 Address:【https://item.taobao.com/item.htm?_u=ukgdp5a7629&id=524088004171】 μC/OS-II maintains all information of an event control block through the OS_EVENT data structure defined in uCOS_II.H [Program Listing L6.1], which is the event control block ECB mentioned at the beginning of this chapter. This structure not only includes the definition of the event itself, … Read more

Fundamentals of Real-Time Operating Systems (RTOS)

Fundamentals of Real-Time Operating Systems (RTOS)

01 Fundamentals of Real-Time Operating Systems (RTOS) Real-Time Operating System (RTOS) is an operating system (OS) designed to provide real-time application processes with data, typically without buffering delays. The key factors in an RTOS are minimal interrupt latency and minimal thread switching latency. The value of an RTOS lies in its response speed or predictability, … Read more

Inter-Task and Inter-Process Communication in VxWorks

Inter-Task and Inter-Process Communication in VxWorks

Click “Read the original text” to access more VxWorks resources VxWorks provides several different mechanisms for inter-task communication. The different methods available include: Semaphores Semaphores are the primary means of synchronization between tasks in VxWorks. There are three different types of semaphores: binary semaphores, counting semaphores, and mutex semaphores. Binary semaphores are used for simple … Read more