Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Linux Response time

Altera_Forum
Honored Contributor II
1,336 Views

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_() ?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
515 Views

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
0 Kudos
Reply