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

Object directories<br />

Each process has an associated object directory. When a thread creates an object, the<br />

RT kernel creates a handle for it. A thread can catalog a high-level object, with its<br />

handle and a corresponding name, in the object directory of its own process or any<br />

other process it knows about. Typically, you catalog objects in the root directory so that<br />

threads in other processes can access them.<br />

Threads that know the name can use the object directory to look up and access objects.<br />

Threads in the same process also can use global variables to identify and access objects<br />

within their process.<br />

Note<br />

You cannot catalog the handle for a low-level object in an object directory.<br />

Figure 3-2. Threads using the root process's object directory<br />

<br />

<br />

A<br />

B<br />

Thread A catalogs an object such as a data mailbox in the root process's object directory.<br />

Thread B looks up the object in the object directory to use it.<br />

Now thread A can send data to the mailbox and thread B can receive it.<br />

33

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

Saved successfully!

Ooh no, something went wrong!