From: Michael Bevilacqua-Linn Date: 2007-10-09T12:23:16+09:00 Subject: Re: thread problem..... ------=_Part_2820_13015199.1191900194750 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 1.) The only way threads get you a speedup is when you write your code in such a way that sections of it can be executed in parallel so you can take advantage of multiple cores (or processors). 2.) The current version of Ruby only supports green threads anyhow. So even if you did have multiple cores, you wouldn't get a speedup. MBL On 10/8/07, Pokkai Dokkai wrote: > > i want to make a program code ,but it ll take long time to execute > so i am spiliting my program into thread .... > > but the general concept about thread is ,it will reduce the execution > time of our program under good condition (depending RAM size,Processor > speed ,etc.....) > > But if the number of thread is more than that capacity of RAM ,Processor > speed,and other resouces.....then the program will be very very slow > > so i want to check all the resource status(RAM ,processor,etc..) ,after > creating everyone child thread from parent thread ... > > so how can i find the resource status(RAM ,processor,etc..) in the > parent thread . > so i can decide about to create next child thread..... > > any idea..... > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_2820_13015199.1191900194750--