Reverting unwanted parts of last commit.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19295 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
809b8f4f16
commit
fb8922192d
|
@ -2,8 +2,6 @@ package examples.actors
|
|||
|
||||
import scala.actors.Actor._
|
||||
import scala.actors.{Channel, OutputChannel}
|
||||
import scala.actors.{Debug, Scheduler}
|
||||
import scala.actors.scheduler.ResizableThreadPoolScheduler
|
||||
|
||||
/**
|
||||
@author Philipp Haller
|
||||
|
@ -20,13 +18,6 @@ object fringe extends Application {
|
|||
case class Equal(atom1: Option[Leaf], atom2: Option[Leaf])
|
||||
case class Extract(tree: Tree)
|
||||
|
||||
Debug.level = 3
|
||||
Scheduler.impl = {
|
||||
val s = new ResizableThreadPoolScheduler(false)
|
||||
s.start()
|
||||
s
|
||||
}
|
||||
|
||||
val comparator = actor {
|
||||
val extractor1 = actor(extractorBehavior())
|
||||
val extractor2 = actor(extractorBehavior())
|
||||
|
|
|
@ -3,8 +3,6 @@ package examples.actors
|
|||
import scala.actors.{Actor, Scheduler}
|
||||
import scala.actors.Actor._
|
||||
import scala.actors.scheduler.SingleThreadedScheduler
|
||||
import scala.actors.{Debug, Scheduler}
|
||||
import scala.actors.scheduler.ResizableThreadPoolScheduler
|
||||
|
||||
object message {
|
||||
def main(args: Array[String]) {
|
||||
|
@ -16,13 +14,7 @@ object message {
|
|||
}
|
||||
val nActors = 500
|
||||
val finalSum = n * nActors
|
||||
//Scheduler.impl = new SingleThreadedScheduler
|
||||
Debug.level = 3
|
||||
Scheduler.impl = {
|
||||
val s = new ResizableThreadPoolScheduler(false)
|
||||
s.start()
|
||||
s
|
||||
}
|
||||
Scheduler.impl = new SingleThreadedScheduler
|
||||
|
||||
def beh(next: Actor, sum: Int) {
|
||||
react {
|
||||
|
@ -43,6 +35,6 @@ object message {
|
|||
val firstActor = actorChain(nActors, null)
|
||||
var i = n; while (i > 0) { firstActor ! 0; i -= 1 }
|
||||
|
||||
//Scheduler.shutdown()
|
||||
Scheduler.shutdown()
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue