RTOS, Embedded Linux, Real-Time Operating System and DO-178B: LynuxWorks

Threads in POSIX
POSIX threads for embedded and real-time developers

SIGNALS IN POSIX

An important POSIX® concept is the distinction between "threads" and "processes."

For inter-process communications, kernel services are required.

Threads are schedulable entities that run within a process. (Visit here if you missed our introduction to processes.) Each process will have one main thread, and it may also have several more threads which share the address space of the process invoked via pthread_create(). A POSIX system call will refer to a process ID or to a thread ID—these IDs are not interchangeable.

Note that some operating systems simply refer to "tasks" instead of distinguishing between "threads" and "processes." Such an operating system probably does not support the POSIX standard, and would not be able to run calls which refer to a process (such as signals).

How POSIX threads work

LynuxWorks™ also supports kernel threads and has been awarded a patent for its unique approach to handling hardware events in a real-time environment. Visit here to read how LynxOS incorporates this technology.

POSIX thread-exit functions
FunctionMain
Thread
Other
Threads
return(), }
or pthread_exit()
All die This thread dies
exit() or _exit() All die All die

 

"But is it POSIX-conformant?"
LynuxWorksPOSIX for
embedded developers
O'REILLY PROGRAMMING GUIDES
for LynuxWorks operating systems

SIGNALS IN POSIX


RTOS and embedded operating systems

Embedded operating systems and development tools

Corporate

Industry solutions

OS Support

OS Training

SynergyWorks: LynuxWorks partners

contact us
ISO9001:2000 Copyright © LynuxWorks™, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of LynuxWorks is prohibited. 20 years of embedded excellence