Skip to content

Instantly share code, notes, and snippets.

Chuizheng Meng mengcz13

Block or report user

Report or block mengcz13

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mengcz13
mengcz13 / disksim-homework.py
Created May 12, 2017
CLOOK, funtion: Disk.DoCLOOK(self, rList)
View disksim-homework.py
#! /usr/bin/env python
from Tkinter import *
from types import *
import math, random, time, sys, os
from optparse import OptionParser
from decimal import *
MAXTRACKS = 1000
@mengcz13
mengcz13 / sync04_barber.c
Created May 6, 2017
Solution for barber problem~
View sync04_barber.c
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define N 10
#define TN 3
#define MAX_WTIME 5
You can’t perform that action at this time.