Parallel programming

Parallel programming

Fork exercises

Keywords: fork, variables, if, for


Include: stdio.h sys/types.h unistd.h

Compile: gcc fork.c

Run: ./fork


Fork

Keywords: template


Compile: gcc fork.c

Run: ./fork


Java Basics

Keywords: Thread, Runnable, join, sleep


Compile: javac Main.java

Run: java Main


Java Executors

Keywords: ExecutorService, Callable, Future


Compile: javac Main.java

Run: java Main


Occam

Keywords: PROC, CHAN, SEQ, PAR, ALT, FOR, !, ?


Connect to linux5: ssh linux5.inf.u-szeged.hu

The linux5 server is only accessible from the Kabinet. From home you should connect to linux.inf.u-szeged.hu first.

Compile: kroc pipesort.occ -lcourse

Run: ./pipesort


PVM

Keywords: pvm_spawn, pvm_initsend, pvm_pkint, pvm_send, pvm_recv, pvm_upkint


Connect to linux5: ssh linux5.inf.u-szeged.hu

The linux5 server is only accessible from the Kabinet. From home you should connect to linux.inf.u-szeged.hu first.

Start pvmd: pvm

Compile: cc -g -I$PVM_ROOT/include hello.c -L$PVM_ROOT/lib/LINUXI386 -lpvm3

Run: ./hello


Powered by w3.css