{"id":22912280,"url":"https://github.com/strongerprogrammer7/javamultiprocessing","last_synced_at":"2025-10-09T03:07:26.843Z","repository":{"id":214299109,"uuid":"736181137","full_name":"StrongerProgrammer7/javaMultiProcessing","owner":"StrongerProgrammer7","description":"The repository was created mainly to remember how multithreading and concurrent processes work in Java. It will also be useful for students.","archived":false,"fork":false,"pushed_at":"2024-02-08T11:19:46.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T03:03:16.015Z","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/StrongerProgrammer7.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-27T07:45:11.000Z","updated_at":"2023-12-27T07:59:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"f66d6020-f6b0-43db-851c-4b0849a3c101","html_url":"https://github.com/StrongerProgrammer7/javaMultiProcessing","commit_stats":null,"previous_names":["strongerprogrammer7/javamultiprocessing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StrongerProgrammer7/javaMultiProcessing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongerProgrammer7%2FjavaMultiProcessing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongerProgrammer7%2FjavaMultiProcessing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongerProgrammer7%2FjavaMultiProcessing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongerProgrammer7%2FjavaMultiProcessing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StrongerProgrammer7","download_url":"https://codeload.github.com/StrongerProgrammer7/javaMultiProcessing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StrongerProgrammer7%2FjavaMultiProcessing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000775,"owners_count":26082911,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-14T04:27:40.069Z","updated_at":"2025-10-09T03:07:26.814Z","avatar_url":"https://github.com/StrongerProgrammer7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003csub\u003e** This work is being done as part of the Course Distributed tasks and algorithms (author Abduykov Z.M.) **\u003c/sub\u003e \n\n\n# javaMultiProcessing\n\n## Content\n- \u003ca href=\"https://github.com/StrongerProgrammer7/javaMultiProcessing#which-develop-instruments-used\"\u003eWhich develop instruments used \u003c/a\u003e\n-  \u003ca href=\"https://github.com/StrongerProgrammer7/javaMultiProcessing#how-connect-mpj-and-include-in-project\"\u003eHow connect MPJ and include in project\u003c/a\u003e\n- \u003ca href=\"https://github.com/StrongerProgrammer7/javaMultiProcessing#work-in-project-description-for-intelij-idea-2023\"\u003eBriefly description tasks\u003c/a\u003e\n  - Introduction with MPJ\n  - Using Async\n  - Using Probe\n  - Sort Array\n  - Mult Vector x Matrix\n  - Graph - Floyd\n\n## Which develop instruments used\n\n- InteliJ IDEA Community 2023\n- JDK - 16 version\n- MPJ Express Version 0.44for win10 (I installed MPJ in the MPJ folder) \n\n## How connect MPJ and include in project\n\n- Download and setup JDK\n- Download and setup MPJ Express and remember where you put\n- Download and install any InteliJ IDEA (recommended) or other IDEA\n- Added system variable\n  - User variable -\u003e create variables\n    - name: JAVA_HOME | value: path\\Java\\jdk-yourversion\n    - name: MPJ_HOME | value: path\\MPJ\n  - Change variable path:\n    - Added: 1) path\\Java\\jdk-yourversion \n  - System variable -\u003e create -\u003e name: CLASSPATH | value: %MPJ_HOME%\\lib\\mpj.jar\n  - Change system variable path:\n    - Added: 1) %MPJ_HOME%\\bin | 2) %JAVA_HOME%\\bin\n\nIf you have problem: maybe you don't have user varibale for InteliJ IDEA \n\n(name: InteliJ IDEA value: path\\InteliJIDEA..\\bin ; \n\nname: IntelliJ IDEA (Community or PRO) .. value: path\\InteliJ IDEA..\\bin)\n\n### Work in project (description for InteliJ IDEA 2023)\n\n- Create project\n- Open File -\u003e Project Structure -\u003e Libraries -\u003e + -\u003e Java -\u003e path/MPJ/lib/mpi.jar (\u0026 mpj.jar \u0026 starter.jar)\n- Create your class\n- Edit configuration -\u003e + -\u003e Application -\u003e\n  - Set name application\n  - Modify options -\u003e Add VM options -\u003e put -jar ${MPJ_HOME}/lib/starter.jar -np (set count rank)\n  - set name main class (if not set)\n  - Environment variables: MPJ_HOME=path\\MPJ\n\n## Briefly description tasks\n\n### Introduction with MPJ\n\nSimple introduction with MPJ ( if you run and get succes then you've installed it correctly. )\n\n### Using Async\n\nSimple introduction with MPJ using Async (Isend, Irecv)\nFor taks using block and non block\nThe overall objective, is as follows:\n1) Each processor puts its rank into the integer variable buf.\n2) Each processor forwards the buf variable to its neighbor on the right.\n3) Each processor sums the received value into a variable s, and then passes the calculated value to its neighbor on the right. \n4) The ring transfers stop when the zero processor sums up the ranks of all processors.\n\n### Using Probe\n\nA simple example of using Probe in asynchronous operation\n\n### Sort Array\n\nSimple array sorting\n1) 9 processes are used ( I have 2 cores, so 7 virtual threads)\n2) 1-6 processes generate random numbers in the array (i.e. each process has 1 number)\n3) 1-3 send 8 processes with tag 0\n4) the rest of you send 7 processes with tag 1.\n5) 7 and 8 sort and send 0 to the process with tags 0 and 1\n6) 0 sorts the rest\n\n### Mult Vector x Matrix\n\nAlgorithm for calculating the product of a matrix over a vector. \nConsider the presence of a tail.\n1) Execute in blocking variant\n2) Execute in a non-blocking variant\n3) Execute in a collective versio\n\n### Graph - Floyd\n\nAlgorithm for computing the diameter of an undirected graph.\n- Graph - for matrix with any values\n- GraphWithSetMatrix - using ready matrix for check work algorithm \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongerprogrammer7%2Fjavamultiprocessing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongerprogrammer7%2Fjavamultiprocessing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongerprogrammer7%2Fjavamultiprocessing/lists"}