21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: About INtime software’s RT kernel<br />

• Isolate resources for their threads, particularly for dynamically allocated memory.<br />

Two threads of one process compete for the memory associated with their process.<br />

Threads in different processes typically do not.<br />

• Provide error boundaries. Errors within one process do not corrupt other processes<br />

or the OS because they reside in separate virtual address spaces.<br />

• When you delete processes, the objects associated with them also are deleted.<br />

Each INtime application’s executable loads as a separate, loadable process. The<br />

processes in a system form a process tree. Each application process obtains resources<br />

from the root:<br />

Figure 3-1. Processes in a process tree<br />

Root<br />

process<br />

C library<br />

Paging<br />

subsystem<br />

DSM<br />

User<br />

Process 1<br />

User<br />

Process 2<br />

User<br />

Process n<br />

Virtual memory<br />

The RT Application Loader creates RT processes when an INtime application loads.<br />

There are system calls you can use to delete RT processes from within an application.<br />

Each process has an associated VSEG whose size is the amount of Virtual Memory<br />

available to the process. The VSEG size must be large enough to contain all the<br />

memory dynamically allocated by the threads within the process.<br />

31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!