Skip to content

Instantly share code, notes, and snippets.

@jamesamrundle
jamesamrundle / timetest.c
Last active April 22, 2019 05:00
PROGRAMATICALLY measure cache line size with C.
#include <stdio.h>
#include <stdlib.h> // for exit(), rand(), strtol()
#include <pthread.h>
#include <time.h> // for nanosleep()
#include <errno.h> // for EINTR error check in millisleep()
@jamesamrundle
jamesamrundle / Assign5_JR.java
Created April 17, 2018 00:24
Assign5_JR.java is main file
import java.util.Scanner;
import java.lang.Math;
import java.io.File;
import java.io.FileInputStream;
import java.io.*;
public class Assign5_JR{