#define MASK (4095)
#define TIMEOUT (30)
-#define MAX_THREADS (32)
#define ALIGN(buf) (((unsigned long) (buf) + MASK) & ~(MASK))
static unsigned long read_mb, write_mb, read_agg, write_agg;
int i, jobs;
- if (argc - 1 > MAX_THREADS) {
- printf("max %d threads\n", MAX_THREADS);
- return 1;
- }
-
shm_id = shmget(0, (argc - 1) * sizeof(struct thread_data), IPC_CREAT | 0600);
if (shm_id == -1) {
perror("shmget");