C# Thread Pool: Concurrency Control Explained

C# Thread Pool: Concurrency Control Explained

C# Thread Pool: Concurrency Control Explained Hello everyone! Today I want to talk about the ThreadPool in C# and concurrency control. In modern application development, effectively using the thread pool can significantly enhance program performance and avoid the overhead of frequently creating and destroying threads. Let’s dive into this powerful feature! What is a Thread … Read more

Differences Between Coroutines and Tasks in RTOS

Differences Between Coroutines and Tasks in RTOS

We are all familiar with processes and threads, but their terminology might differ in RTOS systems. The term we are familiar with is Task (Task), which is similar to Thread (Thread). You will find that in some places, RTOS tasks are also referred to as threads. However, in RTOS, there is another less common program … 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

Understanding the Differences Between Coroutines and Tasks in RTOS

Understanding the Differences Between Coroutines and Tasks in RTOS

Follow+Star Public Account Number, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang We are familiar with processes and threads, but their names might be different in RTOS systems. The familiar term is Task (Task), which is similar to Thread (Thread). You will find that in some places, RTOS tasks are also … Read more

Implementing Inter-Task Communication in FreeRTOS

Implementing Inter-Task Communication in FreeRTOS

Follow and star our public account, reach wonderful content directly Source: Technology makes dreams greater Author: Li Xiaoyao FreeRTOS is a customizable, preemptive multitasking kernel that is very useful and has no limit on the number of tasks. It has been analyzed many times before, simply put, FreeRTOS real-time systems can create multiple independent tasks … Read more

Getting Started with FreeRTOS: Detailed Queue Usage Examples

Getting Started with FreeRTOS: Detailed Queue Usage Examples

Introduction In the previous article, we explained the concept of queues and the related API functions. In this article, we will start learning how to use queues. 1. Basic Usage of Queues This example will create three tasks, two of which send data to the queue, and the other reads data from the queue. void … Read more

Understanding Inter-Task Communication in RTOS

Understanding Inter-Task Communication in RTOS

Follow+Star PublicAccount, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | strongerHuang I came across an interesting question: why do RTOS tasks not use global variables for inter-task communication when bare-metal code uses global variables? Those who have a deep understanding of RTOS principles, or have read RTOS source code should … Read more

Why Not Use Global Variables for Inter-task Communication in RTOS?

Why Not Use Global Variables for Inter-task Communication in RTOS?

Follow+Star Public Account Number, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Students who have a deep understanding of RTOS principles or have read RTOS source code should know: RTOS implements inter-task communication usually by a series of pointers. The “effective data” of inter-task communication is actually implemented by pointers pointing … Read more