![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Porting DHCP from Linux to VxWorks | Sunny Shivam | IP Networking | 2 | 05-02-2008 12:44 AM |
| when porting from HP-UX to Linux | amitpansuria | Linux | 1 | 04-18-2008 02:08 AM |
| porting shell script from Linux to AIX. | joy_1 | Shell Programming and Scripting | 6 | 12-27-2007 02:57 AM |
| Porting From Linux To Hpux | anak0nda | High Level Programming | 8 | 10-31-2007 06:51 PM |
| HP-UX to linux porting | arunprakash | UNIX for Dummies Questions & Answers | 0 | 02-21-2005 05:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Nucleus to Linux porting
I am new to Linux programming and my work involves changing an abstraction layer which made Nucleus calls, to Linux calls.
In Case of Events Nucleus has calls like NU_Set_Events() NU_Retrieve_Events() Can I use the POSIX thread conditional variables for Linux? Can I use the System V calls for events for threads of a same process? Please let me know how I can go about doing it. ------------------------------------------------------------------------------------------- In Case of Pipes Nucleus has calls like NU_Send_To_Pipe() NU_Receive_From_Pipe() NU_Send_To_Front_Of_Pipe() These calls have a suspend as one parameter by which the pipe can be suspended or can return back immediately if the pipe cannot be written into or read from. But in Linux, in case of pipes created by pipe() or open() system call, the pipe has only the suspend functionality where in it will suspend till it can read from or write to pipe. Moreover in Nucleus, NU_Send_To_Front_Of_Pipe() writes to front of the pipe for urgent messages. How do I implement these functionalities in Linux? ------------------------------------------------------------------------------------------- In case of Mutexes and Semaphores, The Nucleus has functionalities where the thread can try locking mutexes or acquiring semaphores for a specified amount of time, after which they return back if mutex/semaphore is unavailable. How can this be implemented in Linux? Can nanosleep() be used here? Kindly suggest some solutions. Thanks. Taklu. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|