Thread.sleep's behavior is documented here: https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#sleep(long)
On Wed, Oct 14, 2015 at 4:14 PM, Fahimeh Rahemi <[email protected]> wrote: > Hi every body! > > I have a relative question; > I want to create some heavy and thread occupier actors by akka; by using > thread.sleep(5000) are the threads associated to that actors really > occupied?I mean when I use thread.sleep(5000) inside an actor, does the > actor occupy the thread for 5 seconds or leaves it to the thread pool for > other actors to use? > an other alternative for making a heavy actor is, for example, using > nested 1000000 time loops: for(int i =0; i<1000000; i++); and doing some > mathematical operations inside the loops! > may I know your opinions? > thanks > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
