CPU Class Reference

Represents a CPU on which a task can execute. More...

#include <simboinc.h>

List of all members.

Public Member Functions

 CPU ()

Public Attributes

m_host_t host
int num_tasks_exec
int cpu_no

Detailed Description

Represents a CPU on which a task can execute.

Each CHKPT_TASK keeps track of which cpu no is it running on for restart purposes. ASYNC_EXEC_MCPUS::async_exec_mcpus will schedule the task on the host with the least number of processes; when the number of processes is the same, it will schedule the task on the cpu with the lower cpu no first. ASYNC_EXEC_MCPUS::async_exec_mcpus will increment and decrement num_tasks_exec as necessary.

A multi-cpu host will store an array of CPU's as its user data (see m_host_t in SimGrid).

Constructor & Destructor Documentation

CPU::CPU  )  [inline]

Member Data Documentation

int CPU::cpu_no

m_host_t CPU::host

int CPU::num_tasks_exec

number of CHKPT_TASK executing

The documentation for this class was generated from the following file:
Generated on Mon Mar 12 16:22:03 2007 for SimBOINC by  doxygen 1.4.6