version 1.82, 2013/03/20 17:11:43
|
version 1.85, 2013/04/01 15:29:33
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.13 |
RPL/2 (R) version 4.1.14 |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 842 initialisation_instructions(struct_proce
|
Line 842 initialisation_instructions(struct_proce
|
|
|
INSTRUCTION("CLRCNTXT", instruction_clrcntxt); |
INSTRUCTION("CLRCNTXT", instruction_clrcntxt); |
INSTRUCTION("CLRSMPHR", instruction_clrsmphr); |
INSTRUCTION("CLRSMPHR", instruction_clrsmphr); |
|
INSTRUCTION("COMPRESS", instruction_compress); |
INSTRUCTION("CONTINUE", instruction_continue); |
INSTRUCTION("CONTINUE", instruction_continue); |
INSTRUCTION("CRITICAL", instruction_critical); |
INSTRUCTION("CRITICAL", instruction_critical); |
INSTRUCTION("DUPCNTXT", instruction_dupcntxt); |
INSTRUCTION("DUPCNTXT", instruction_dupcntxt); |
Line 901 initialisation_instructions(struct_proce
|
Line 902 initialisation_instructions(struct_proce
|
//pentes |
//pentes |
//représentent la valeur de la fonction (x,y) en leur milieu. |
//représentent la valeur de la fonction (x,y) en leur milieu. |
//=> utile pour y'=F(x,y) |
//=> utile pour y'=F(x,y) |
|
INSTRUCTION("UNCOMPRESS", instruction_uncompress); |
|
|
INSTRUCTION("LOCALIZATION", instruction_localization); |
INSTRUCTION("LOCALIZATION", instruction_localization); |
INSTRUCTION("SMPHRTRYDECR", instruction_smphrtrydecr); |
INSTRUCTION("SMPHRTRYDECR", instruction_smphrtrydecr); |
Line 1232 analyse(struct_processus *s_etat_process
|
Line 1234 analyse(struct_processus *s_etat_process
|
(*s_etat_processus).pourcentage_maximal_cpu) |
(*s_etat_processus).pourcentage_maximal_cpu) |
- (pourcentage * temps_cpu / 100); |
- (pourcentage * temps_cpu / 100); |
|
|
temporisation.tv_sec = (__time_t) floor(attente); |
temporisation.tv_sec = (time_t) floor(attente); |
temporisation.tv_nsec = (__suseconds_t) ((attente |
temporisation.tv_nsec = (suseconds_t) ((attente |
- ((real8) temporisation.tv_sec)) * 1E9); |
- ((real8) temporisation.tv_sec)) * 1E9); |
|
|
while(nanosleep(&temporisation, &temporisation) == -1) |
while(nanosleep(&temporisation, &temporisation) == -1) |