Skip to content

Commit

Permalink
req-queue done!
Browse files Browse the repository at this point in the history
  • Loading branch information
bambreeze committed Dec 31, 2015
1 parent 098a3cc commit 850a9ce
Show file tree
Hide file tree
Showing 18 changed files with 321 additions and 165 deletions.
15 changes: 15 additions & 0 deletions include/rand.h
@@ -0,0 +1,15 @@
#ifndef MY_RAND_H
#define MY_RAND_H

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

inline int myrand (int limit)
{
time_t t;
srand((unsigned) time(&t));
return rand() % limit;
}

#endif
File renamed without changes.
165 changes: 0 additions & 165 deletions mthread/req-queue.c

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions python/exec.py
@@ -0,0 +1,6 @@
#!/usr/bin/python

import os, sys

cmd = "ls"
os.system(cmd)
15 changes: 15 additions & 0 deletions reqq/greq.py
@@ -0,0 +1,15 @@
#!/usr/bin/python
# generate rquest simulation

import os, sys

v4add = "pkill -3 reqq"
v4del = "pkill -4 reqq"
v6add = "pkill -5 reqq"
v6del = "pkill -6 reqq"

for i in range(0, 5):
os.system(v4add)
os.system(v4del)
os.system(v6add)
os.system(v6del)
Binary file added reqq/reqq
Binary file not shown.

0 comments on commit 850a9ce

Please sign in to comment.