Hirdetés
- Milyen belső merevlemezt vegyek?
- Majdnem megfelezi a GeForce GPU-k gyártókapacitását az NVIDIA?
- 3D nyomtatás
- Házimozi belépő szinten
- AMD vs. INTEL vs. NVIDIA
- Milyen asztali (teljes vagy fél-) gépet vegyek?
- Melyik tápegységet vegyem?
- Szünetmentes tápegységek (UPS)
- Na, milyen hardver kerül a fa alá?
- ThinkPad (NEM IdeaPad)
Ú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?:))
- Eladó ASUS ROG Claymore II RGB RX HU Kitűnő, Sértetlen Állapotban, Gyári Dobozában!
- NVIDIA RTX 3080 Ti 12GB GDDR6X Founders Edition Eladó!
- Újszerű Samsung IPS monitor, Emelhető-Forgatható, 2xHDMI, DP, Joystick
- Eladó ASUS Rog Spatha X Hibátlan, Gyári Dobozos Állapotban!
- DJI SPARK SUNRISE YELLOW DRONE SOK KIEGÉSZÍTŐVEL ELADÓ
- Bomba ár! HP EliteBook mt44 - Ryzen PRO 3 I 8GB I 128SSD I HDMI I 14" FHD I Cam I W10 I Gari!
- Gamer PC-Számítógép! Csere-Beszámítás! I5 10400 / RTX 3060 12GB / 32GB DDR4 / 512GB SSD
- Ritkaság! 17" Dell XPS 9720 - i7 12th gen 27% Áfás
- OnePlus 13 Gyors teljesítmény és modern dizájn Midnight Ocean 16/512 GB
- MacBook felváráslás!! MacBook, MacBook Air, MacBook Pro
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


