Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

miguelTavora/Operating-Systems-Fundamentals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi threading and multi process projects

This project is divided into two projects. The first one is to create multiple processes that can communicate with each other using MapperByteBuffer. The communication is handled by a RandomAccessFile in Java. When one program sends a message, the other running processes receive the message.

The second one involves creating a multithreading program to control a Lego EV3 robot. The idea is to have a robot executing geometric shapes using a non-blocking user interface. Every time a geometrical form is required, a thread is created. Since the user interface is non-blocking, multiple commands can be sent at the same time. To solve this issue, semaphores are used, where the first thread acquires the resources and the subsequent threads must wait until the one with the resources releases them.

Example of the ui from multi process program:

drawing

Example of the ui and UML from multi thread program:

drawing

drawing

About

Projects with multi-process and multi-threading

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages