Back: Process-printing Up: Base classes Forward: ProcessorScheduler class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.129 ProcessorScheduler

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Processes
I provide methods that control the execution of processes.

1.129.1 ProcessorScheduler class: instance creation  (class)
1.129.2 ProcessorScheduler: basic  (instance)
1.129.3 ProcessorScheduler: built ins  (instance)
1.129.4 ProcessorScheduler: idle tasks  (instance)
1.129.5 ProcessorScheduler: printing  (instance)
1.129.6 ProcessorScheduler: priorities  (instance)
1.129.7 ProcessorScheduler: storing  (instance)
1.129.8 ProcessorScheduler: timed invocation  (instance)


1.129.1 ProcessorScheduler class: instance creation

new
Error--new instances of ProcessorScheduler should not be created.


1.129.2 ProcessorScheduler: basic

activeDebugger
Answer the active process' debugger

activePriority
Answer the active process' priority

activeProcess
Answer the active process

processesAt: aPriority
Answer a linked list of processes at the given priority

terminateActive
Terminate the active process

timeSlice
Answer the timeslice that is assigned to each Process before it is automatically preempted by the system (in milliseconds). An answer of zero means that preemptive multitasking is disabled. Note that the system by default is compiled without preemptive multitasking, and that even if it is enabled it will work only under BSD derivatives (or, in general, systems that support ITIMER_VIRTUAL).

timeSlice: milliSeconds
Set the timeslice that is assigned to each Process before it is automatically preempted by the system. Setting this to zero disables preemptive multitasking. Note that the system by default is compiled with preemptive multitasking disabled, and that even if it is enabled it will surely work only under BSD derivatives (or, in general, systems that support ITIMER_VIRTUAL).

yield
Let the active process yield control to other processes


1.129.3 ProcessorScheduler: built ins

twice
disableInterrupts
Disable interrupts caused by external events while the current process is executing. Note that interrupts are disabled on a per-process basis, and that calling #disableInterrupts twice requires calling #enableInterrupts twice as well to re-enable interrupts.

enableInterrupts
Re-enable interrupts caused by external events while the current process is executing. By default, interrupts are enabled.


1.129.4 ProcessorScheduler: idle tasks

idle
Private - Call the next idle task

idleAdd: aBlock
Register aBlock to be executed when things are idle

initialize
Private - Start the finalization process.

update: aSymbol
If we left some work behind when the image was saved, do it now.


1.129.5 ProcessorScheduler: printing

printOn: aStream
Store onto aStream a printed representation of the receiver


1.129.6 ProcessorScheduler: priorities

highIOPriority
Answer the priority for system high-priority I/O processes, such as a process handling input from a network.

highestPriority
Answer the highest valid priority

lowIOPriority
Answer the priority for system low-priority I/O processes. Examples are the process handling input from the user (keyboard, pointing device, etc.) and the process distributing input from a network.

lowestPriority
Answer the lowest valid priority

priorityName: priority
Private - Answer a name for the given process priority

rockBottomPriority
Answer the lowest valid priority

systemBackgroundPriority
Answer the priority for system background-priority processes. Examples are an incremental garbage collector or status checker.

timingPriority
Answer the priority for system real-time processes.

unpreemptedPriority
Answer the highest priority avilable in the system; never create a process with this priority, instead use BlockClosure>>#valueWithoutPreemption.

userBackgroundPriority
Answer the priority for user background-priority processes

userInterruptPriority
Answer the priority for user interrupt-priority processes. Processes run at this level will preempt the window scheduler and should, therefore, not consume the processor forever.

userSchedulingPriority
Answer the priority for user standard-priority processes


1.129.7 ProcessorScheduler: storing

storeOn: aStream
Store onto aStream a Smalltalk expression which evaluates to the receiver


1.129.8 ProcessorScheduler: timed invocation

isTimeoutProgrammed
Private - Answer whether there is a pending call to #signal:atMilliseconds:

signal: aSemaphore atMilliseconds: millis
Private - signal 'aSemaphore' after 'millis' milliseconds have elapsed

signal: aSemaphore onInterrupt: anIntegerSignalNumber
Private - signal 'aSemaphore' when the given C signal occurs



Back: ProcessorScheduler-storing Up: ProcessorScheduler Forward: Promise   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html