Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNicheStack multiple select() call fails!
Hello @ all, I have created two (or more) networktasks in the µC/OS-II enviroment wich are using the Niche TCP/IP Stack. When i perform a select() call from both tasks to there sockets, only the s...
Altera_Forum
Honored Contributor
16 years agoThank you for your reply!
I will try it! I noticed, that when the select() is first entered within both tasks, the wakeup-function wakes both tasks correctly (this is done for timeout-checking within the select). But when is send data to the socket of the lower-priority tasks, this task will be excluded permanently from the cyclic wakeup. So i thingk the problem is located in the tcp_sleep and/or tcp_wakeup functions or there is a bug in the semaphore- mutex- handling.... But what do you recomend to do in my case? (I need a very short latency between data reception on a socket and it's processing).