ventilo toussa...

import java.io.IOException ; /** * @author Pen^2 */ public class Heater { public static void main( String[] args ) { for ( int i= nbCores * nbProcs ; i > 0 ; --i ) { final int heaterIndex= i ; new Thread() { @Override public void run() { setPriority(MIN_PRIORITY) ; while ( !stopHeaters ) yield() ; System.out.println("Heater "+heaterIndex+" stopped!") ; } }.start() ; System.out.println("Heater "+heaterIndex+" started ...") ; } try { System.in.read() ; } catch ( IOException ioe ) { } finally { stopHeaters= true ; } } private static volatile boolean stopHeaters ; private static final int nbCores= 4 ; private static final int nbProcs= 1 ; }
Pen^2 (./13) :
Ben il faisait super froid et ils n'avaient pas allumé le chauffage dans le bâtiment
J'ai déjà la main droite un peu engourdie (simple vitrage, pas de joints, c'est la main proche de la fenêtre. C'est tout juste si je sens encore mon petit doigt)
Il parait qu'il y a 17.5°C, au milieu de la pièce...