My system is using Arm cortexa7@1GHz with realtime patchset Linux 4.4.138-rt19 from CIP Community: v4.4.138-cip25-rt19
I has run a prio-preempt.c to verify priority preemption on my system. However I am running an issue: the system only probably runs a number of threads lower than 27 created threads.
About theorical aspect, the ltp app prio-preempt creates 27 worker_threads with different priorities, N busy_threads (N: depend on number of CPU(s), in my case N = 2) with high priority, and master_thread (highest priority).
When deploying the app to the board, threads_running is always lower than 27 while create_fifo_thread(worker_thread,i,...) successfully created 27 worker_thread(s). I ran the same program above on cortexa15@1.5GHz, the issue didn't happen.
For further vision, I thought the issue might come from Linux RT scheduler unable to waken sleep threads after bmutex lock is released.
Anyone has the same problem to me ? plz share your idea.