X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/f4328fdae5f3d2e093921ecea5ac4b5bd0d351c8..769cca7ab62a0ac4e1cbfc6631e9e762c60d81b6:/practicas/practica2/P02e1201.cpp diff --git a/practicas/practica2/P02e1201.cpp b/practicas/practica2/P02e1201.cpp index 648cc25..5600630 100644 --- a/practicas/practica2/P02e1201.cpp +++ b/practicas/practica2/P02e1201.cpp @@ -75,7 +75,6 @@ int main(int argc, char *argv[]) cerr << "Error al attachear shared memory.\n"; return 3; } - cout << "Shared memory id = " << shm_id << "\n"; // Semaforo int sem_id; @@ -95,13 +94,12 @@ int main(int argc, char *argv[]) cerr << "No se pudo inicializar semaforo.\n"; return 5; } - cout << "Semaforo inicializado id = " << sem_id << "\n"; } srand(getpid()); // Maxima cantidad de iteraciones (puede venir por parametro) - int max_iter = 100; + int max_iter = 10; if (argc > 2) max_iter = atoi(argv[2]);