{"id":326,"date":"2009-06-14T10:37:09","date_gmt":"2009-06-14T08:37:09","guid":{"rendered":"http:\/\/konstantin.filtschew.de\/blog\/?p=326"},"modified":"2009-06-14T10:37:09","modified_gmt":"2009-06-14T08:37:09","slug":"anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen","status":"publish","type":"post","link":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/","title":{"rendered":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen"},"content":{"rendered":"<p>Da derzeitige Computersysteme in Anzahl der Prozessoren (im Moment Kerne) und nicht mehr im GHz wachsen, muss auch ein Umdenken bei der Programmierung passieren. Das bedeutet wir m\u00fcssen als Programmierer Aufgaben parallelisieren oder unabh\u00e4ngige Prozesse bzw. Threads parallel ausf\u00fchren, um die Leistung m\u00f6glichst effizient ausnutzen zu k\u00f6nnen. Wenn das m\u00f6glich ist, dann sollte das Programm \u00fcber die Anzahl der Prozessoren (im Moment Kerne) selbstst\u00e4ndig bestimmen, wie viele Prozesse bzw. Threads es parallel ausf\u00fchrt.<\/p>\n<p>Das folgende Codefragment bestimmt die Prozessoranzahl unter Java:<br \/>\n[code]<br \/>\npublic class ProcessorCounter {<\/p>\n<p>\tpublic static void main(String[] args) {<\/p>\n<p>\t\tRuntime runtime = Runtime.getRuntime();<\/p>\n<p>        int nrOfProcessors = runtime.availableProcessors();<\/p>\n<p>        System.out.println(&#8222;Number of processors available to the Java Virtual Machine: &#8220; + nrOfProcessors);<br \/>\n\t}<br \/>\n}<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Da derzeitige Computersysteme in Anzahl der Prozessoren (im Moment Kerne) und nicht mehr im GHz wachsen, muss auch ein Umdenken bei der Programmierung passieren. Das bedeutet wir m\u00fcssen als Programmierer Aufgaben parallelisieren oder unabh\u00e4ngige Prozesse bzw. Threads parallel ausf\u00fchren, um die Leistung m\u00f6glichst effizient ausnutzen zu k\u00f6nnen. Wenn das m\u00f6glich ist, dann sollte das Programm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew\" \/>\n<meta property=\"og:description\" content=\"Da derzeitige Computersysteme in Anzahl der Prozessoren (im Moment Kerne) und nicht mehr im GHz wachsen, muss auch ein Umdenken bei der Programmierung passieren. Das bedeutet wir m\u00fcssen als Programmierer Aufgaben parallelisieren oder unabh\u00e4ngige Prozesse bzw. Threads parallel ausf\u00fchren, um die Leistung m\u00f6glichst effizient ausnutzen zu k\u00f6nnen. Wenn das m\u00f6glich ist, dann sollte das Programm [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\" \/>\n<meta property=\"og:site_name\" content=\"Konstantin Filtschew\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-14T08:37:09+00:00\" \/>\n<meta name=\"author\" content=\"Konstantin Filtschew\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fa11enangel\" \/>\n<meta name=\"twitter:site\" content=\"@fa11enangel\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Konstantin Filtschew\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\"},\"author\":{\"name\":\"Konstantin Filtschew\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"headline\":\"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen\",\"datePublished\":\"2009-06-14T08:37:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\"},\"wordCount\":138,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"articleSection\":[\"Java\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\",\"name\":\"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew\",\"isPartOf\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#website\"},\"datePublished\":\"2009-06-14T08:37:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/konstantin.filtschew.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#website\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/\",\"name\":\"Konstantin Filtschew\",\"description\":\"Der t\u00e4gliche IT-Wahnsinn\",\"publisher\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/konstantin.filtschew.de\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\",\"name\":\"Konstantin Filtschew\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png\",\"contentUrl\":\"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png\",\"width\":222,\"height\":193,\"caption\":\"Konstantin Filtschew\"},\"logo\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Building an operation system without source code, is like buying a self assemble space shuttle without instructions. (Author unknown)\",\"sameAs\":[\"https:\/\/konstantin.filtschew.de\",\"https:\/\/www.linkedin.com\/in\/konstantin-filtschew-b7138019\/\",\"https:\/\/x.com\/fa11enangel\"],\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/author\/konstantin-filtschew\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/","og_locale":"de_DE","og_type":"article","og_title":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew","og_description":"Da derzeitige Computersysteme in Anzahl der Prozessoren (im Moment Kerne) und nicht mehr im GHz wachsen, muss auch ein Umdenken bei der Programmierung passieren. Das bedeutet wir m\u00fcssen als Programmierer Aufgaben parallelisieren oder unabh\u00e4ngige Prozesse bzw. Threads parallel ausf\u00fchren, um die Leistung m\u00f6glichst effizient ausnutzen zu k\u00f6nnen. Wenn das m\u00f6glich ist, dann sollte das Programm [&hellip;]","og_url":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/","og_site_name":"Konstantin Filtschew","article_published_time":"2009-06-14T08:37:09+00:00","author":"Konstantin Filtschew","twitter_card":"summary_large_image","twitter_creator":"@fa11enangel","twitter_site":"@fa11enangel","twitter_misc":{"Verfasst von":"Konstantin Filtschew","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#article","isPartOf":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/"},"author":{"name":"Konstantin Filtschew","@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"headline":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen","datePublished":"2009-06-14T08:37:09+00:00","mainEntityOfPage":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/"},"wordCount":138,"commentCount":1,"publisher":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"articleSection":["Java"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/","url":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/","name":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen - Konstantin Filtschew","isPartOf":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#website"},"datePublished":"2009-06-14T08:37:09+00:00","breadcrumb":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/konstantin.filtschew.de\/blog\/2009\/06\/14\/anzahl-prozessoren-bestimmen-welche-fuer-die-java-virtual-machine-jvm-vom-system-zur-verfuegung-stehen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/konstantin.filtschew.de\/blog\/"},{"@type":"ListItem","position":2,"name":"Anzahl Prozessoren bestimmen welche f\u00fcr die Java Virtual Machine (JVM) vom System zur Verf\u00fcgung stehen"}]},{"@type":"WebSite","@id":"https:\/\/konstantin.filtschew.de\/blog\/#website","url":"https:\/\/konstantin.filtschew.de\/blog\/","name":"Konstantin Filtschew","description":"Der t\u00e4gliche IT-Wahnsinn","publisher":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/konstantin.filtschew.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e","name":"Konstantin Filtschew","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png","contentUrl":"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png","width":222,"height":193,"caption":"Konstantin Filtschew"},"logo":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/"},"description":"Building an operation system without source code, is like buying a self assemble space shuttle without instructions. (Author unknown)","sameAs":["https:\/\/konstantin.filtschew.de","https:\/\/www.linkedin.com\/in\/konstantin-filtschew-b7138019\/","https:\/\/x.com\/fa11enangel"],"url":"https:\/\/konstantin.filtschew.de\/blog\/author\/konstantin-filtschew\/"}]}},"_links":{"self":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":8,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts\/326\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}