This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Threadz { | |
| public static void main(String... args) { | |
| // creating 1000 threads | |
| Thread[] threadsPool = new Thread[1000]; | |
| for(int i = 0; i < 1000; i++) { | |
| // assigning tasks to each thread |
NewerOlder