Re: Installing Perl ithreads in perl 5.8

[email protected] (Elizabeth Mattijsen) Tue, 23 Mar 2010 07:23:45 +0100
Newsgroups perl.ithreads
Message-ID <[email protected]>
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 :-
>=20
> 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.
>=20
> 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> -----Original Message-----
> From: Elizabeth Mattijsen [mailto:[email protected]]
> Sent: Monday, March 22, 2010 6:37 PM
> To: Ajeet Kumar
> Cc: [email protected]
> Subject: Re: Installing Perl ithreads in perl 5.8
>=20
> Re-compile Perl 5.8 with ithreads enabled.  That's the only option.
>=20
> Liz
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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.
>>=20
>>=20
>> Thanks & Regards
>> AJEET KUMAR GUPTA
>>=20
>> Trainee-Software Engineer
>>=20
>>=20
>>=20
>> A R I C E N T
>>=20
>>=20
>>=20
>> Plot 17 Electronic City Sector 18
>>=20
>> Gurgaon 122015 India
>>=20
>>=20
>>=20
>> Hand Phone  +91 9871675405
>>=20
>> Extension           3445
>>=20
>>=20
>>=20
>>=20
>>=20
>> ________________________________
>> "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."
>=20
>=20
> "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."