- LED / LCD TV topik
- Androidos fejegységek
- Milyen egeret válasszak?
- RAM topik
- Kevés helyet hagyott a tápkonnektor körül a világ legdrágább csúcs-VGA-ja?
- Projektor topic
- Kormányok / autós szimulátorok topikja
- Canon MILC: EOS R és M topik
- Logitech Harmony - én irányítok mindent!
- A Windows 11 nem akarja ránk erőltetni az AI applikációkat – vagy mégis?
Új hozzászólás Aktív témák
-
btotyi
tag
Például így :
package test;
class Szal extends java.lang.Thread {
volatile static boolean Stop = false;
// Primordial thread executes main()
public static void main(String args[]) throws InterruptedException {
// Create and start 2 threads
Szal thread1 = new Szal();
thread1.setPriority(1); // 1st thread at 1th non-RT priority
Szal thread2 = new Szal();
thread2.setPriority(1); // 2nd thread at 1th non-RT priority
thread1.start(); // start 1st thread to execute run()
thread2.start(); // start 2nd thread to execute run()
// Sleep for 10 seconds, then tell the threads to terminate
Thread.sleep(10 * 1000);
Stop = true;
}
public void run() { // Created threads execute this method
System.out.println(''Created thread'');
int count = 0;
for (; Stop != true;) { // continue until asked to stop
count++;
Thread.yield(); // yield to other thread
}
System.out.println(''Thread terminates. Loop count is '' + count);
}
}
forrás:[link]
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- Fedezd fel az EcoTextil-Méteráru kínálatát
- IPAD Pro 12.9 2.Gen 512GB Wifi+CELLULAR, ÜZLETBŐL, 27% ÁFÁS SZÁMLA. GARANCIA
- Playseat Evolution Pro - Red Bull Racing ESPORTS kiadás - akár karácsonyra!
- ADATA AX5U6000C3016G-DTLABRWH 32GB KIT 6000MHz
- G-SKILL F5-6000J3040G32GX2-TZ5RW 64GB KIT 6000MHz (Egyszer beüzemelt)
- TomTom Go 5200 with Wi-Fi navigáció / 12 hó jótállás
- Apple iPhone 12 Pro 512GB,Újszerű,Dobozával,12 hónap garanciával
- AKCIÓ! MSI MAG 325CQRXF QHD VA 240Hz 1ms monitor garanciával hibátlan működéssel
- GYÖNYÖRŰ iPhone 13 Mini 128GB Blue -1 ÉV GARANCIA -Kártyafüggetlen, MS3886
- Xiaomi Redmi Note 14 Pro / 8/256GB / Káértyafüggetlen / 12Hó Garancia
Állásajánlatok
Cég: BroadBit Hungary Kft.
Város: Budakeszi
Cég: Laptopszaki Kft.
Város: Budapest


