On Mar 23, 2010, at 6:00 AM, Ajeet Kumar wrote:
> I want to share variable among threads, where threads are created using  
> fork, not using ithreads.So, How to move with it? I had tried the following :-
> 
> 1.) Declared a variable in main process
> 2.) taken it's reference in main process
> 3.) Now, as because the reference is available two all of my threads, I tried 
> to change the value of my variable using the reference.
> 4.) However, changes done by the thread is only reflected to that particular 
> thread only, not to other thread and even not in the main process.
> 
> Please, give any solution, without using any ithreads or any other thread 
> model.(I don't want to rebuild the perl interpreter)

Use forks.  Have you *looked* at forks?  Do you read what people tell you?  Do 
you read the documentation?

Otherwise, if forks doesn't do it for you: don't use Perl, use C.


Liz
=====================
> -----Original Message-----
> From: Elizabeth Mattijsen [mailto:l...@dijkmat.nl]
> Sent: Monday, March 22, 2010 6:37 PM
> To: Ajeet Kumar
> Cc: perl-ithreads@perl.org
> Subject: Re: Installing Perl ithreads in perl 5.8
> 
> Re-compile Perl 5.8 with ithreads enabled.  That's the only option.
> 
> Liz
> ======================
> On Mar 22, 2010, at 2:01 PM, Ajeet Kumar wrote:
>> I have Perl 5.8 in my solaris machine, but without ithreads enabled. Now I 
>> want to install ithreads also. So, Please mention the required steps to be 
>> followed, in order to get it done ASAP.
>> 
>> 
>> Thanks & Regards
>> AJEET KUMAR GUPTA
>> 
>> Trainee-Software Engineer
>> 
>> 
>> 
>> A R I C E N T
>> 
>> 
>> 
>> Plot 17 Electronic City Sector 18
>> 
>> Gurgaon 122015 India
>> 
>> 
>> 
>> Hand Phone  +91 9871675405
>> 
>> Extension           3445
>> 
>> 
>> 
>> 
>> 
>> ________________________________
>> "DISCLAIMER: This message is proprietary to Aricent and is intended solely 
>> for the use of the individual to whom it is addressed. It may contain 
>> privileged or confidential information and should not be circulated or used 
>> for any purpose other than for what it is intended. If you have received 
>> this message in error, please notify the originator immediately. If you are 
>> not the intended recipient, you are notified that you are strictly 
>> prohibited from using, copying, altering, or disclosing the contents of this 
>> message. Aricent accepts no responsibility for loss or damage arising from 
>> the use of the information transmitted by this email including damage from 
>> virus."
> 
> 
> "DISCLAIMER: This message is proprietary to Aricent and is intended solely 
> for the use of the individual to whom it is addressed. It may contain 
> privileged or confidential information and should not be circulated or used 
> for any purpose other than for what it is intended. If you have received this 
> message in error, please notify the originator immediately. If you are not 
> the intended recipient, you are notified that you are strictly prohibited 
> from using, copying, altering, or disclosing the contents of this message. 
> Aricent accepts no responsibility for loss or damage arising from the use of 
> the information transmitted by this email including damage from virus."

Reply via email to