Questions tagged [counting-semaphore]
3 questions
1
vote
1 answer
I am not able to print the output on the screen. I am using cppreference side (GCC 12.1 (c++20 )) compiler
I am not able to print the output on the screen.I am using cppreference side (GCC 12.1 (c++20
)) compiler, Is there any deadlock situation in below example. Is there any online compiler i can use for trying this type of examples
#include…

Mangy
- 119
- 6
1
vote
1 answer
FreeRTOS and synchronization between one writer and two readers
I'm working on Modbus data logger that has two RS-485 ports handled by two tasks modbus_0_task and modbus_1_task. Both tasks use shared data_descriptors array (only for reading). These tasks will be called "readers" below.
There is also another task…

Kamil
- 13,363
- 24
- 88
- 183
0
votes
0 answers
Difference between #include and <#include
For , Error is there - fatal error: semaphore: No such file or directory. I want to use std::counting_semaphore<1> prepareSignal(0);

Shivang vijay
- 1
- 1