Good day everyone ! I am trying to get a 2nd thread (the serial thread) to run as near real time as possible. Within my 2nd spawned serial thread I select() with timeout of 3 mS on a serial port. I also get real time before select() … and then after to get select() delta time. Problem is that sometimes
Tag: real-time
Is it safe to use boost provided shared memory and rt_signal (provided in linux) for realtime system?
I am currently working with building realtime IPC system. I am trying to build a realtime system free of all undeterministic components. I try to setup IPC based on shared memory model. Is it safe to use managed_shared_memory from boost library to minimize unpredictable latency? or should I use mmap() for memory sharing? Also Is rt_signal which has channel from
Linux CONFIG_PREEMPT_RT for a quad core ARM A53 (newbie doubts)
I would like to activate the PREEMPTion features of my Linux Kernel. To do that I should download the right patch matching the version of the kernel I am using and that I compiled (as explained here). The version of the kernel I have is the Linux version 4.9.0 (obtained just typing uname -a from the command line and double
Do linux read/write system calls use dynamic memory allocation?
I wonder if read and write system calls on linux (used with unix sockets) do dynamic memory allocation? The context are real time applications and deterministic behaviour. Answer No. If you look for syscalls in the Linux kernel source (I used grep -rn SYSCALL_DEFINE.*write to find read/write), you can see the source for yourself: Note that system call definitions can
RT preempt vs RTAI vs Xenomai for real-time linux
What are differences, pros and cons of the three referred real time OS framework, extensions or patches? I want to measure a CPU timestamp counter (TSC), time in nanosecond everytime when a data frame or an ack frame of Wifi is sent or received. And I realized that one of three real time technique is required to increase precision and
In Java is there any way to share memory location to exchange some real-time small packets?
Is there any better/smarter way to put and get a boolean value from memory system, but not using any TCP/UDP nor local file system method? Where Backend does memory allocation, and Frontend reads it on the fly, none of them will be able to use TCP/UDP nor File system. Answer AFAIK, The only way to use shared memory in pure
Is it possible to “hang” a Linux box with a SCHED_FIFO process?
I want to have a real-time process take over my computer. 🙂 I’ve been playing a bit with this. I created a process which is essentially a while (1) (never blocks nor yields the processor) and used schedtool to run it with SCHED_FIFO policy (also tried chrt). However, the process was letting other processes run as well. Then someone told