Skip to content

Instantly share code, notes, and snippets.

View MarceloPincheira's full-sized avatar
🇲🇹

Marcelo Pincheira MarceloPincheira

🇲🇹
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv){
char rut[9];
int votantes, lista, listaA, listaB, nulos;
int i;
lista = 0;
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
int main(int argc, char** argv){
char rut[9];
int votantes, lista, listaA, listaB, nulos;
int i;
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
char rut[9];
int votantes, lista, listaA, listaB, nulos;
int i;
void *mostrar(void *param); //Hebra.
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
char rut[9];
int votantes, lista, listaA, listaB, nulos;
sem_t mutex;
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta charset="utf-8"/>
<meta name="generator" content="Wix.com Website Builder"/>
<link rel="shortcut icon" href="https://static.wixstatic.com/media/f42ed1_38bf4e4ac23342169809be456b8780e6%7Emv2.png/v1/fill/w_32%2Ch_32%2Clg_1%2Cusm_0.66_1.00_0.01/f42ed1_38bf4e4ac23342169809be456b8780e6%7Emv2.png" type="image/png"/>
<link rel="apple-touch-icon" href="https://static.wixstatic.com/media/f42ed1_38bf4e4ac23342169809be456b8780e6%7Emv2.png/v1/fill/w_32%2Ch_32%2Clg_1%2Cusm_0.66_1.00_0.01/f42ed1_38bf4e4ac23342169809be456b8780e6%7Emv2.png" type="image/png"/>