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++

Multi Threading On Nios-II

Altera_Forum
Honored Contributor II
1,517 Views

Hello Friend's 

 

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

 

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

 

kaushal
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
682 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
682 Views

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) 

 

Regards 

Kaushal K Kanwariya
0 Kudos
Reply