Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: threads change
Artur Bergman wrote:
> - 'exit' inside a thread silently terminates thread only
> what was the reasoning for this change?

Wow.  You missed a whole lot of discussion on this and other
changes to the 'threads' module on the Perl5 Porters and
Perl iThreads mailing lists.  I did not make these changes
in a vacuum, but with lots of input and recommendations from
others.  I strongly recommend that you review the
correspondences from June and July:
http://www.nntp.perl.org/group/perl.perl5.porters
http://www.nntp.perl.org/group/perl.ithreads

As to this specific change, it was started by the
observation that exiting from 'main' with threads running
produced a warning while exiting from a thread did not.
When this inconsistency was brought up and discussed, the
consensus of those weighing in on the issue was that exiting
a thread should exit the thread only and not the whole app,
and further that it should not produce a warning.  Again,
see the mailing list archive for the discussion.

> Secondly, you do realise that
>
>         if (thread->interp) {
>             dTHXa(thread->interp);
>             PL_psig_pend[signal]++;
>             PL_sig_pending = 1;
>         }
>
> is not threadsafe in anyway?

In what way is it not thread safe?  Do you have a fix for
whatever bug you think exists?  Have you looked at the test
suite?  How is it deficient?

> And that the entire notion of sending signals to a thread
> is dubious and not a portable concept

In what way is it dubious?  Again, it was discussed and
accepted by those weighing in.  Further, it works very well,
and I have released two new modules to CPAN that utilitize
this new feature:  Thread::Suspend and Thread::Cancel.

As to portability, it works under all systems tested: Win32,
Solaris, Cygwin, and more.  What are your specific issues
with it?

I am sorry that you were not aware of the discussions that
were going on.  Do you monitor the Perl iThreads mailing
list?  I'll endeavor to include it on all further 'threads'
discussion.


Report this thread to moderator Post Follow-up to this message
Old Post
Jerry D. Hedden
07-14-06 01:03 PM


Re: threads change
On Jul 14, 2006, at 6:21 AM, Jerry D. Hedden wrote:

> Artur Bergman wrote: 
>
> Wow.  You missed a whole lot of discussion on this and other
> changes to the 'threads' module on the Perl5 Porters and
> Perl iThreads mailing lists.  I did not make these changes
> in a vacuum, but with lots of input and recommendations from
> others.  I strongly recommend that you review the
> correspondences from June and July:
>     http://www.nntp.perl.org/group/perl.perl5.porters
>     http://www.nntp.perl.org/group/perl.ithreads
>
> As to this specific change, it was started by the
> observation that exiting from 'main' with threads running
> produced a warning while exiting from a thread did not.
> When this inconsistency was brought up and discussed, the
> consensus of those weighing in on the issue was that exiting
> a thread should exit the thread only and not the whole app,
> and further that it should not produce a warning.  Again,
> see the mailing list archive for the discussion.
>

Nevertheless I object, it was a conscious decision to have exit() not
exit a thread but the entire app from the start, unlike psuedo
forking which is supposed to emulate a different process, exit() is
supposed to act on the process and not threads. If code is running in
a thread or no doesn't mean it should have to act differently.

I also think exiting from a thread is something that the developer
should be aware of is happening, and that is why it is giving the
warning.

I read parts of the message and I still disagree, and I did voice
this privately to Nicholas, which in retrospect was the wrong thing
to do.
 
>
> In what way is it not thread safe?  Do you have a fix for
> whatever bug you think exists?  Have you looked at the test
> suite?  How is it deficient?

You are using another interpreter, that is possibly currently
running, and then acting on it with non locking semantics. At best
your ++ will be lost.

While I guess it is fine to use the signal system to pass
information, I would define a new signal type and just use that to
awake the other thread and get it from the threads.xs module. You are
again mixing the notion of a process and a thread, and code that is
supposed to work on inter process signals will get .

Artur


Report this thread to moderator Post Follow-up to this message
Old Post
Artur Bergman
07-15-06 12:04 AM



Britney Spears Spreading Outdoors!
[url]http://Britney-Spears-Spreading-Outdoors.org/WindowsMediaPlayer.php?movie=148803[/
url]

Report this thread to moderator Post Follow-up to this message
Old Post
Emperor
03-10-07 08:43 AM



Katie Holmes touching her boobs!
[url]http://Katie-Holmes-touching-her-boobs.info/WindowsMediaPlayer.php?movie=148803[/u
rl]

Report this thread to moderator Post Follow-up to this message
Old Post
Hosseinzich
04-20-07 10:09 AM



http://Johnny-Depp-lesbian-strip.or...hp?movie=148803

Report this thread to moderator Post Follow-up to this message
Old Post
Sterten12
04-22-07 04:19 AM



Amateur BDSM video
http://www.bdsmathome.info/218571.avi

Report this thread to moderator Post Follow-up to this message
Old Post
Albanian_ghetto
06-10-07 03:06 AM



Sarah M. Gellar Nude Posing Home Made!

http://www.britneyraped.com/WatchMovie?movie=1673286

free sex contact black teen sex free lesbian sex picture world sex gallery amateur drunk sex
discount generic viagra free video of lesbian having sex
 ebony sex video teen oral sex amateur sample sex video
http://bfaqolfz.t35.com/black-sex/index.html 
http://pwkktxik.t35.com/free-sex/free-amateur-sex.html
http://az818p0w.t35.com/lesbian-sex...ex-picture.html
http://cteud0l4.t35.com/amateur-sex...blonde-sex.html
http://cteud0l4.t35.com/amateur-sex...ex-swinger.html

Report this thread to moderator Post Follow-up to this message
Old Post
Drift
06-10-07 08:12 PM



http://www.videomoviesonline.com/WatchTube?clip=1673286

Report this thread to moderator Post Follow-up to this message
Old Post
Edbas1
06-15-07 06:13 PM



Heather Locklear and C
atherine Z. Jones Have Fun In Sauna!

Report this thread to moderator Post Follow-up to this message
Old Post
Scrumdiddlyumpsciuos
06-16-07 04:11 PM



Amazing videos right from the TOILET!
http://pissing-skills-avi.info/WindowsMedia?218571
Hot girls there!

Report this thread to moderator Post Follow-up to this message
Old Post
Licking
07-12-07 06:29 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ithreads archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.