Functions

/home/mesh/mesh/include/mesh_def_energy_schedulers.h File Reference

MESH energy Functions. More...

Go to the source code of this file.

Functions

GSList * mesh_energy_sched_find_idle_resources (mesh_scheduler *cs)
 Searches the given scheduler and.
GSList * mesh_energy_scheduler_rr (mesh_scheduler *cs)
 This is the default energy scheduler function. It uses a round-robin algorithm to schedule all the eligible threads onto idle resources, with a preference to using idle resources with higher fractional available computational power (using the default feature). It.

Detailed Description

MESH energy Functions.


Function Documentation

GSList* mesh_energy_sched_find_idle_resources ( mesh_scheduler *  cs  ) 

Searches the given scheduler and.

label mesh_energy_sched_find_idle_resources

Parameters:
cs Scheduler to search for idle resources
Returns:
a GSList of mesh_resource pointers to idle resources. The caller is responsible for freeing this list. This function is useful when writing custom scheduler routines.
A GSList of pointers to idle mesh_resource structures
GSList* mesh_energy_scheduler_rr ( mesh_scheduler *  cs  ) 

This is the default energy scheduler function. It uses a round-robin algorithm to schedule all the eligible threads onto idle resources, with a preference to using idle resources with higher fractional available computational power (using the default feature). It.

label mesh_energy_scheduler_rr

Parameters:
cs Scheduler to perform round-robin scheduling with
Returns:
a list of thread-resource pairs which should be run by the kernel. This function can be passed to mesh_create_scheduler().
A GSList of thread-resources pairs (rt_pair)
 All Files Functions