{"id":20975346,"url":"https://github.com/aloisseckar/demos-java-vt","last_synced_at":"2025-08-25T08:05:24.443Z","repository":{"id":145785884,"uuid":"586302132","full_name":"AloisSeckar/demos-java-vt","owner":"AloisSeckar","description":"Demo of Java 21 Virtual Threads","archived":false,"fork":false,"pushed_at":"2023-09-21T18:55:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T17:51:59.374Z","etag":null,"topics":["java","java-21","virtual-threads"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AloisSeckar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-07T16:52:26.000Z","updated_at":"2023-10-08T19:55:54.000Z","dependencies_parsed_at":"2023-03-31T03:36:58.860Z","dependency_job_id":null,"html_url":"https://github.com/AloisSeckar/demos-java-vt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AloisSeckar%2Fdemos-java-vt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AloisSeckar%2Fdemos-java-vt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AloisSeckar%2Fdemos-java-vt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AloisSeckar%2Fdemos-java-vt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AloisSeckar","download_url":"https://codeload.github.com/AloisSeckar/demos-java-vt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374326,"owners_count":20280661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-21","virtual-threads"],"created_at":"2024-11-19T04:42:43.420Z","updated_at":"2025-03-13T09:17:51.721Z","avatar_url":"https://github.com/AloisSeckar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java 21 Virtual Threads\n\nThis application shows the difference between the old 'platform' and new 'virtual' threads\nin Java 21. While 'platform' threads are bind to underlying OS and thus potentially limited,\n'virtual' threads exist only inside JVM and you can have as many as you want. \n\nIn this example the program first trying to create N 'platform' threads, while this is\nintended to fail during the process. Then the very same code is executed with 'virtual'\nthreads and everything finishes without runtime error.\n\n## Note\nThis will only work as intended on Unix-based systems, because there is an upper bound of\nnumber of threads (processes) and also maximum number of processes per user. On the other\nhand on Windows there is no such limit - the number of threads is unlimited, although\nperformance issues will occur if you try to push it.\n\nTherefore, a Linux machine is required to run this demo and see the \"correct\" results.\n\n## Usage\nCheckout and `mvn clean install` the project and then either run\n`java -jar target\\JavaDemos-VT-2.0.jar` directly or move the `jar` \nto target Linux platform with Java and run the command there.\n\n## Author\n* alois.seckar@gmail.com\n* http://alois-seckar.cz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisseckar%2Fdemos-java-vt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloisseckar%2Fdemos-java-vt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisseckar%2Fdemos-java-vt/lists"}