This file contains hidden or 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
object Server extends Actor { | |
//event based server actor that schedules client requests | |
def act = eventloop { | |
case id: Int => | |
//spawn a new thread based actor for processing client request with id:Int | |
println("Actor " + id); | |
actor { | |
receive{ |
This file contains hidden or 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
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/sda1 7.9G 726M 6.8G 10% / | |
none 3.4G 112K 3.4G 1% /dev | |
none 3.6G 0 3.6G 0% /dev/shm | |
none 3.6G 48K 3.6G 1% /var/run | |
none 3.6G 0 3.6G 0% /var/lock | |
none 3.6G 0 3.6G 0% /lib/init/rw | |
/dev/sdb 414G 199M 393G 1% /mnt |
This file contains hidden or 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
object Zip1 { | |
case class Str(value:String) | |
def main(args : Array[String]) : Unit = { | |
def getStuff() : Map[Int, Str] = { | |
val l1 = List(1,2,3) | |
val l2 = List( Str("one"), Str("two"), Str("three") ) | |
NewerOlder