30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2<br />

Concepts Underlying the T-<strong>Kernel</strong><br />

<strong>Specification</strong><br />

2.1 Meaning of Basic Terminology<br />

1. Task, invoking task<br />

The basic logical unit of concurrent program execution is called a “task”. Whereas the programs<br />

assigned to one task are executed in sequence, programs assigned to different tasks can be executed<br />

in parallel. This concurrent processing is a conceptual phenomenon, from the standpoint of applications;<br />

in actual implementation it is accomplished by time-sharing among tasks as controlled<br />

by the kernel.<br />

A task that invokes a system call is called the “invoking task”.<br />

2. Dispatch, dispatcher<br />

The switching of tasks executed by the processor is called “dispatching” (or task dispatching). The<br />

kernel mechanism by which dispatching is realized is called a “dispatcher” (or task dispatcher).<br />

3. Scheduling, scheduler<br />

The processing to determine which task to execute next is called “scheduling” (or task scheduling).<br />

The kernel mechanism by which scheduling is realized is called a “scheduler” (or task scheduler).<br />

Generally a scheduler is implemented inside system call processing or in the dispatcher.<br />

4. Context<br />

The environment in which a program runs is generally called “context”. For a context to be<br />

called identical, at the very least the processor operation mode must be the same and the stack<br />

space must be the same (part of the same contiguous area). Note that context is a conceptual<br />

matter from the standpoint of applications; even when processing must be executed in independent<br />

contexts, in actual implementation both contexts may sometimes use the same processor operation<br />

mode and the same stack space.<br />

5. Precedence<br />

The relationship among different processing requests that determines their order of execution is<br />

called “precedence”. When a higher-precedence process becomes ready for execution while a lowprecedence<br />

process is in progress, as a general rule the higher-precedence process is run ahead of<br />

the other process.<br />

5

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

Saved successfully!

Ooh no, something went wrong!