Leon Timmermans > POSIX-RT-Scheduler > POSIX::RT::Scheduler

Download:
POSIX-RT-Scheduler-0.003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.003   Source  

NAME ^

POSIX::RT::Scheduler - POSIX Scheduler support functions

VERSION ^

version 0.003

SYNOPSIS ^

 sched_setscheduler($pid, 'rr', 10);

DESCRIPTION ^

This module allows one to set the scheduler and the scheduler priority of processes.

The following scheduler policies are supported:

FUNCTIONS ^

sched_getscheduler($pid)

Get the scheduler for $pid.

sched_setscheduler($pid, $policy, $priority = 0)

Set the scheduler for $pid to $policy, with priority $priority if applicable. $priority must be within the inclusive priority range for the scheduling policy specified by policy. If $pid is zero, the current process is retrieved

sched_getpriority($pid)

Return the real-time priority of $pid as an integer value.

sched_setpriority($pid, $priority)

Set the real-time priority of $pid to $priority.

sched_priority_range($policy)

This function returns the (inclusive) minimal and maximal values allowed for $policy.

sched_yield()

Yield execution to the next waiting process or thread. Note that if the current process/thread is the highest priority runnable real-time scheduled process/thread available, this will be a no-op.

AUTHOR ^

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: