Forum Discussion
Altera_Forum
Honored Contributor
22 years agoLinux Response time
I try to evaluate context-switch response time.
I use 2 threads and 2 mutexes. Thread A waits for mutex A and releases mutex B, thread B releases mutex A and waits for mutex B. It gives me the following (in microseconds) 27 µs for µC/OS-II on NIOSII 'fast' at 50 MHz. 430 µs for Linux on NIOSII (same configuration). [As a reference, 29 µs for VxWorks on a 133MHz AMD5x86] Is Linux really so bad (16 times) ? Is there something faster than pthread_() ?1 Reply
- Altera_Forum
Honored Contributor
Hi Bruno,
Just to let you know, we are currently doing some uClinux / Nios II benchmarking and hope to have something out next week. We will post the results to the forum when they are ready. Best regards, Robert Microtronix