This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Diego Javier Sosa Torres | |
#sos14735 | |
#ejercicio3 seccion1 | |
#logica principal del programa | |
def main() -> None: | |
persons_dict_list = [] | |
selected_option = None | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Diego Javier Sosa Torres | |
#sos14735 | |
#ejercicio3 seccion1 | |
#logica principal del programa | |
def main() -> None: | |
persons_dict_list = [] | |
selected_option = None | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#define NTHREADS 5 | |
#define ITER 10 | |
#define RSRC 100 | |
#define COUNT_R 5 | |
pthread_mutex_t mutex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#define NTHREADS 5 | |
#define ITER 10 | |
sem_t semaphore; |