Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Multi Threading On Nios-II

Honored Contributor II

Hello Friend's 


How do we perform Multi-threading (like pthread etc.) on altera nios-ii ? 


Is use of pthread valid on nios-ii....? 


0 Kudos
2 Replies
Honored Contributor II

You will need to install an operating system, there are several options, a common choice is a variant of Linux. We use RTEMS RTOS.

Honored Contributor II

Hello jeffreyOHill, 


Thanking you for your time,  


My nios-ii board have Pree-install uC/OS-II , can i add the said (pthread) functionality in it ? (if not please suggest how do add other OS in it) 


I have edit the simple-socket-server example for my multi-threaded code. but during build time it generate an error at "pthread_create" section. 


and through other forum post i come to know that pthread is not supported by uc/OS-II. 


i am writing a tcp and udp based client server application on it, over it TCP based Application (Or Thread is for Control Purpose) and UDP based Application (Or Thread) for Data Communication. 


so my Project have effectivelly Three Thread 

1. TCP Receive 

2. TCP Send 

3. UDP receive 


I have tested all the relevant Code On Linux (ubuntu 12.04) and it work fine. now i am going to port this C Code on my nios board (Altera ESDK) 



Kaushal K Kanwariya