http://www.cs.princeton.edu/academics/catalog
- COS314 - Introduction to Computer Music
- COS318 - Operating Systems
- COS320 - Compiling Techniques
- COS326 - Functional Programming
import Control.Concurrent | |
import Control.Concurrent.Chan | |
import System.Environment | |
import System.Exit | |
import System.Time | |
main = getArgs >>= start | |
start [s1,s2] = do | |
stopCh <- newChan |
import java.util.concurrent.atomic.AtomicLong; | |
public class CostOfLocksThreaded { | |
private static class Incr extends Thread { | |
private static long a; | |
public static void initialize() { a = 0; } | |
public static long get() { return a; } | |
private long incr() { return ++a; } | |
public void run() { |
// Try parser combinators in C | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct token | |
{ | |
const char *text; | |
}; | |
struct token_list |
-module(etalk). | |
-export[start/2, acceptor/1]. | |
start(Port, NumWorkers) -> | |
Opts = [binary, {active, false}], | |
case gen_tcp:listen(Port, Opts) of | |
{ok, ListenSock} -> | |
start_acceptors(NumWorkers, ListenSock), | |
inet:port(ListenSock) | |
; {error, Reason} -> |
http://www.cs.princeton.edu/academics/catalog
=erl_crash_dump:0.1 | |
Thu Sep 20 17:39:12 2012 | |
Slogan: init terminating in do_boot () | |
System version: Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false] | |
Compiled: Tue Sep 4 09:58:49 2012 | |
Taints: | |
Atoms: 6665 | |
=memory | |
total: 9102952 | |
processes: 1259392 |