Skip to content

Resource Management in a Futuristic Internet Café, developed in C with multiprocessing and threads

Notifications You must be signed in to change notification settings

lulciano123/CyberCafeMultithread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CyberCafeMultithread

Gerenciamento de Recursos em um Internet Café Futurista

O presente trabalho propõe uma solução para o gerenciamento eficiente dos recursos de um cybercafé high-tech chamado CyberFlux. O local oferece um ambiente de alto desempenho para gamers, freelancers e estudantes, possuindo recursos limitados, como computadores de última geração, headsets de realidade virtual e cadeiras ergonômicas. O objetivo deste projeto é desenvolver um sistema capaz de gerenciar a alocação desses recursos de forma justa, evitando deadlocks e starvation, garantindo uma distribuição equilibrada entre os usuários. A solução foi implementada utilizando a linguagem C, empregando o conceito de multiprocessamento e sincronização de threads para simular o uso dos recursos pelos clientes. Para evitar problemas de sincronização e concorrência, foram utilizados semáforos para o controle dos recursos e mutexes para a coleta de estatísticas.

Resource Management in a Futuristic Internet Café

This code proposes a solution for the efficient management of resources in a high-tech cybercafé called CyberFlux. The venue offers a high-performance environment for gamers, freelancers, and students, featuring limited resources such as next-generation computers, virtual reality headsets, and ergonomic chairs. The objective of this project is to develop a system capable of managing the allocation of these resources fairly, avoiding deadlocks and starvation, and ensuring a balanced distribution among users. The solution was implemented using the C programming language, employing multiprocessing and thread synchronization concepts to simulate the use of resources by clients. To prevent synchronization and concurrency issues, semaphores were used to control resource access, and mutexes were used for collecting usage statistics.

About

Resource Management in a Futuristic Internet Café, developed in C with multiprocessing and threads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages