- Kilim: Isolation-Typed Actors for Java (A Million Actors, Safe Zero-Copy Communication) (
kilim_ecoop08.pdf
)- Slides:
kilim-google.pdf
- Slides:
- A Thread of One’s Own (
thread_of_ones_own.pdf
) - The Problem with Threads (
EECS-2006-1.pdf
)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Möhren carrots | |
Gurken cucumbers | |
Apfel apple | |
rot red | |
Joghurt yoghurt | |
Nuss nut | |
Eier eggs | |
Freilandeier free-range eggs (produced from birds that are permitted outdoors for at least part of the day) | |
Frischmilch fresh milk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET = my_program.exe | |
RM = rm -f | |
CXX = g++ | |
CXXFLAGS = -std=c++11 -m64 -g -I"." -I".." -I"${BOOST_ROOT}" -I"${MYSQL_ROOT}/include" -I"${PROTOBUF_ROOT}/include" | |
LDFLAGS = -L"${BOOST_ROOT}/stage/lib" -L"${MYSQL_ROOT}/lib" -L"${PROTOBUF_ROOT}/lib" | |
LDLIBS = -lboost_system -lmysqlclient -lprotobuf | |
SRCS = $(wildcard *.cpp ../common/*.cc) | |
OBJS = $(subst .cc,.o,$(subst .cpp,.o,$(SRCS))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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} -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Try parser combinators in C | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct token | |
{ | |
const char *text; | |
}; | |
struct token_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(tcbenchnb). | |
-export([start/2, init/2, thread/1]). | |
start(Total_Rounds, Step) -> | |
spawn(?MODULE, init, [Total_Rounds, Step]). | |
init(Total_Rounds, Step) -> | |
Start_Time = os:timestamp(), | |
create_threads(0, 0, Total_Rounds, Step, Start_Time). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sml | |
Standard ML of New Jersey v110.67 [built: Wed Apr 10 22:39:58 2013] | |
- use "sigtest.sml"; | |
[opening sigtest.sml] | |
[autoloading] | |
[library $SMLNJ-BASIS/basis.cm is stable] | |
[autoloading done] | |
signature MYLIST = | |
sig | |
type 'a T |
OlderNewer