Re: [Newbies] BlockClosure>>fork problem

2007-02-28 Thread Bert Freudenberg
On Feb 28, 2007, at 20:56 , stephane ducasse wrote: On 20 févr. 07, at 21:55, Bert Freudenberg wrote: On Feb 20, 2007, at 21:28 , George Herolyants wrote: Thanks for this answer, Ron. But actually I'm not confused with order in wich '1' and '2' presents in result line. I can't understa

Re: [Newbies] BlockClosure>>fork problem

2007-02-28 Thread stephane ducasse
On 20 févr. 07, at 21:55, Bert Freudenberg wrote: On Feb 20, 2007, at 21:28 , George Herolyants wrote: Thanks for this answer, Ron. But actually I'm not confused with order in wich '1' and '2' presents in result line. I can't understand why in some cases this code results ten '1' and ten

Re: [Newbies] BlockClosure>>fork problem

2007-02-28 Thread George Herolyants
Ron, Michael and Bert, thank you very much for your help! George ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners

Re: [Newbies] BlockClosure>>fork problem

2007-02-20 Thread Bert Freudenberg
On Feb 20, 2007, at 21:28 , George Herolyants wrote: Thanks for this answer, Ron. But actually I'm not confused with order in wich '1' and '2' presents in result line. I can't understand why in some cases this code results ten '1' and ten '2' and in some cases it results ten '2' and only n

RE: [Newbies] BlockClosure>>fork problem

2007-02-20 Thread Ron Teitelbaum
sage- > From: [EMAIL PROTECTED] [mailto:beginners- > [EMAIL PROTECTED] On Behalf Of George Herolyants > Sent: Tuesday, February 20, 2007 3:28 PM > To: A friendly place to get answers to even the most basic questions > aboutSqueak. > Subject: Re: [Newbies] BlockClosure>>fork

Re: [Newbies] BlockClosure>>fork problem

2007-02-20 Thread George Herolyants
Thanks, Michael! Now I know, that it isn't a problem of BlockClosure's fork method, but a specific behaviour of Transcript. Code you give in your message result the same line as VW. George ___ Beginners mailing list Beginners@lists.squeakfoundation.o

Re: [Newbies] BlockClosure>>fork problem

2007-02-20 Thread George Herolyants
Thanks for this answer, Ron. But actually I'm not confused with order in wich '1' and '2' presents in result line. I can't understand why in some cases this code results ten '1' and ten '2' and in some cases it results ten '2' and only nine '1'? ___ B

Re: [Newbies] BlockClosure>>fork problem

2007-02-20 Thread Michael Davies
George, You'll find that writing to the Transcript always slows things down. I assume it's the time for writing to the Transcript that also causes the second process to start after a different interval each time. Writing the results into an OrderedCollection will be much faster, and more predicta

RE: [Newbies] BlockClosure>>fork problem

2007-02-19 Thread Ron Teitelbaum
Hi George, I'm not sure what you expect to happen. The code you are running basically says go off on your own and do something. A fork creates a different thread that processes instructions on its own, but the two processes are not coordinated the scheduler just gives them time when it can. No

[Newbies] BlockClosure>>fork problem

2007-02-19 Thread George Herolyants
Hi all, I'm new to Smalltalk and Squeak and I have a question. I tried some examples from chapter Processes from "Smalltalk by Example" book. I executed the following code several times but the output was quite different as I suppose and differed from time to time. Furthermore evaluation went a