jueves, 18 de agosto de 2011


Nunca confies en un conductor de autobus desnudo :) ( In construction)


"In computer science, a semaphore is a variable or abstract data type that provides a simple but useful abstraction for controlling access by multiple processes to a common resource in a parallel programming environment."

Searching the semaphore on NachOS

So, our first task was to look for a semaphore code implemented in our Nachos source. This was easy to find because there is a threads directory inside the Nachos-4.0/code directory, so our first impression was "It's probably there".

When searching on the files, we found the implementation on the synch.cc file. The code can be found here:


We tried to make an example file using semaphores, but we couldn't find out how to run an user made program in NachOS yet, so we will add it to the post later on.



No hay comentarios:

Publicar un comentario