{"id":19476244,"url":"https://github.com/pgaref/jni_thread_pinning","last_synced_at":"2026-05-13T08:32:19.386Z","repository":{"id":74272582,"uuid":"53872489","full_name":"pgaref/jni_thread_pinning","owner":"pgaref","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-02T23:07:50.000Z","size":7485,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T06:35:45.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgaref.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-03-14T16:26:02.000Z","updated_at":"2016-03-17T14:56:42.000Z","dependencies_parsed_at":"2023-07-12T05:00:10.150Z","dependency_job_id":null,"html_url":"https://github.com/pgaref/jni_thread_pinning","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/pgaref%2Fjni_thread_pinning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fjni_thread_pinning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fjni_thread_pinning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaref%2Fjni_thread_pinning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaref","download_url":"https://codeload.github.com/pgaref/jni_thread_pinning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240701173,"owners_count":19843653,"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":[],"created_at":"2024-11-10T19:37:45.224Z","updated_at":"2026-05-13T08:32:14.347Z","avatar_url":"https://github.com/pgaref.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jni_thread_pinning\n\n /proc/cpuinfo file contains info about the machine cpu architecture:\n\n* Chip: The physical processor you can hold in your hands. Some people call it socket but it can generate confusion with network programming. Different chips usually share the same L3 cache.\n* Core: A chip can have multiple cores (multi-core processor). Each core usually has its own L1 cache, which is the fastest in-chip cache. Different cores usually share the same L2 cache.\n* Processor: A *logical* processor which is the smallest processing unit that can execute only one thread at a time. If the chip supports hyper-threading, then each core will have two logical processors. Otherwise each core will only be able to execute one thread through a single logical processor.\n\n## Experimental results\n\nRun on CPU:  Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with\n* 4 physical cores\n* 4 Hyper Threads\n* 8 usable processors in total\n\n### Small tasks\n![Thead Affinity Small Tasks](https://github.com/pgaref/jni_thread_pinning/blob/master/graphs/thread-affinity-sTasks.jpg)\n\n### Medium tasks\n![Thead Affinity Medium Tasks](https://github.com/pgaref/jni_thread_pinning/blob/master/graphs/thread-affinity-mTasks.jpg)\n\n### Large tasks\n![Thead Affinity Large Tasks](https://github.com/pgaref/jni_thread_pinning/blob/master/graphs/thread-affinity-lTasks.jpg)\n\n\n## References\n\n* [Reducing system jitter-part1](http://epickrram.blogspot.co.uk/2015/09/reducing-system-jitter.html)\n* [Reducing system jitter-part2](http://epickrram.blogspot.co.uk/2015/11/reducing-system-jitter-part-2.html)\n* [HdrHistogram + jHiccup](http://psy-lob-saw.blogspot.com/2015/02/hdrhistogram-better-latency-capture.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaref%2Fjni_thread_pinning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaref%2Fjni_thread_pinning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaref%2Fjni_thread_pinning/lists"}