public void ParallelPut(byte[][] key, byte[][] value, int[] ttl,
bool[] expected_result, ref int op) {
ArrayList threadlist = new ArrayList();
for (int i = 0; i < key.Length; i++) {
Hashtable ht = new Hashtable();
ht.Add("key", key[i]);
ht.Add("value", value[i]);
ht.Add("ttl", ttl[i]);
ht.Add("result", expected_result[i]);
ht.Add("op", op++);
Thread thread = new Thread(SerialPut);
thread.Start((object) ht);
threadlist.Add(thread);
}
foreach(Thread thread in threadlist) {
thread.Join();
}
}