Search Discussions
-
Hi, I'm new on this list, not sure if this is the right place for this, please redirect me if this is not on topic here. ;) I am seeing issues with open3()/waitpid() calls when running the same code ...
Sander Smeenk
Mar 4, 2013 at 1:26 pm
Mar 4, 2013 at 10:38 pm -
Hi list, I've a question about pool example script ( http://cpansearch.perl.org/src/JDHEDDEN/threads-1.86/examples/pool.pl). Theoretically, should the sub "timer" kill threads immediately when sleep ...
Alfonso Caponi
Dec 13, 2012 at 5:15 pm
Dec 13, 2012 at 5:35 pm -
Hello everybody - PDL folks will know that I have a lot of projects running lately, but I felt compelled to push this one through at the moment. Threads folks are probably aware that I've been ...
David Mertens
Dec 13, 2012 at 7:19 am
Dec 13, 2012 at 9:56 pm -
Hey folks - I am working on a module to share PDL data (C-like arrays of data) across threads. It pretty much works, but it's not quite as rock-solid as I'd like. I'd first like to solve my immediate ...
David Mertens
Dec 3, 2012 at 4:53 am
Jan 2, 2013 at 11:26 pm -
Hi list, I need help! :) How can I use "alarm" without exit from a thread only (without making the script end!). For example this works (without threads): while(1){ eval { local $SIG{ALRM} = sub { ...
Alfonso caponi
Sep 1, 2011 at 10:08 am
Nov 2, 2011 at 1:23 pm -
Is it possible to load modules at run time, require '/file_path/file_name.pm ;' , and share the memory between threads? Basically, I have a pool of threads, if thread#1 decides to load a module, I ...
Pedro Cirne
Jul 2, 2011 at 2:45 am
Jul 2, 2011 at 8:19 am -
Hi list, I've some doubts with a multi-threads script. My goal is to create a script with the same max number of threads running at all times. For example: I've an array with 9 elements and 3 threads ...
Alfonso caponi
Apr 16, 2010 at 3:48 pm
May 6, 2010 at 1:26 pm -
Hello Everybody... 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 ...
Ajeet Kumar
Mar 22, 2010 at 1:01 pm
Mar 23, 2010 at 2:00 pm -
Hello, I havent found any relevant posts on this topic so far, so hoping the experts can rescue me. I'm extending Perl and also embedding a cloned interpreter. I use the cloned interpreter to invoke ...
Sri
Nov 24, 2009 at 8:04 am
Nov 24, 2009 at 8:04 am -
Warning: This message has had one or more attachments removed Warning: (message.pif). Warning: Please read the "unconfigured-debian-site-Attachment-Warning.txt" attachment(s) for more information. ...
Barries
Nov 10, 2009 at 6:30 am
Nov 10, 2009 at 6:30 am -
threads.pm contains the following statement: It is also important to note that you must enable threads by doing C<use threads as early as possible in the script, and that it is not possible to enable ...
Jerry D. Hedden
Aug 10, 2009 at 12:54 pm
Aug 10, 2009 at 12:54 pm -
Hi, I have a perl script that gathers some data initially in the main thread, then farms out work to helper threads. I have two shared variables, each controlling access to a separate library. Never ...
Zenko Klapko Jr.
May 18, 2009 at 9:16 pm
May 19, 2009 at 12:23 pm -
Dear all, I am trying to speed up a very long procedure that I need to run on multiple files and though that I could multithread different jobs on different files across multiple CPUs. For some ...
Blanchette, Marco
Dec 31, 2008 at 2:33 pm
Jan 3, 2009 at 8:22 am -
While trying to build a threading perl 5.8.8 I encountered this error while running make. The error follows: `sh cflags "optimize='-O'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c CCCMD = ...
Craig L. McMillon
Dec 15, 2008 at 2:08 pm
Dec 15, 2008 at 2:08 pm -
I've been writing threaded Perl code for a while and I've found that there are severe issues in sharing data between threads. Lately I've been trying to address some of those issues in a threaded ...
Paul Robert Marino
Dec 12, 2008 at 11:11 am
Dec 15, 2008 at 5:59 pm -
Hi All. A question about threads from the XS-embedding-module perspective: What is the difference between MY_CXT and PL_modglobal? I have implemented C running Perl module that embed a C XS function, ...
Shmuel Fomberg
Oct 27, 2008 at 8:54 pm
Nov 1, 2008 at 11:36 pm -
Hi there, I'm writing a multithreaded merge sort that suffers from massive amounts of context switches (as seen by vmstat). The outline of the program is roughly as follows: ==== my @sortdata : ...
Thomas Karcher
Sep 23, 2008 at 3:10 pm
Sep 23, 2008 at 7:18 pm -
Hello, I am trying to write a XS module for a C library that creates its own threads from which I have to pass callbacks back into perl. Unfortunately, I am pretty much confused by the discussion of ...
Josef Wolf
Aug 2, 2008 at 1:00 am
Aug 8, 2008 at 3:10 pm -
Hi, I have a problem with the module Thread::Pool-0.32. I need to set my script as a daemon, but when i use this module the program kill the threads. The output of my script is: starting a new work ...
Javier
Jul 29, 2008 at 12:24 pm
Jul 30, 2008 at 8:11 am -
Hi all, I new on threads, but not so on perl. I trying to execute a thread inside a object method of a class that I make to consult SNMP quests and feed a rrddatabase. The code bellow functions very ...
Valter Douglas Lisbôa Jr.
Jul 14, 2008 at 2:22 pm
Jul 14, 2008 at 4:33 pm -
Hi All, I have a script that set environment variables for 10 plus configuration and each configuration share some environment variable and have some different or specific environment variables for a ...
Wong, Danny H.
Jun 14, 2008 at 12:06 am
Jun 14, 2008 at 12:06 am -
Hello list, I am designed a new software. I am using threads. The operation is correct, but memory consumption is excessive. The system is using 100 MB and when the software is working, 500 Mb. The ...
Javier Terceiro
Jun 11, 2008 at 1:27 pm
Jun 11, 2008 at 2:59 pm -
Hi GURUS, I'm trying to created a hash of array inside a thread, but the hash loses all its keys/values when leaving the function. Is there a bug in using a hash inside a thread? Any ideas? foreach ...
Wong, Danny H.
Jun 3, 2008 at 10:30 pm
Jun 4, 2008 at 1:15 pm -
Hi, I am getting the fallowing error while building the perl5.8.7 on OpenVMS I64 v.8.3 system using threads MMK 15-MAY-2008 16:40:40 15-MAY-2008 16:40:40 15-MAY-2008 16:40:40 CC/DECC/NOANSI_ALIAS ...
Ravi kumar
May 16, 2008 at 7:32 am
May 16, 2008 at 7:32 am -
(Apologies for not tracking p5p closely, I just don't have time these days) I've been pouring over the p5p archives trying to find what the subject p5p summary item is about, but wo/ any luck. Can ...
Dean Arnold
May 3, 2008 at 3:58 pm
May 17, 2008 at 11:59 am -
Hi GURUS, I'm trying to implement a threaded program using work crew model. I was wondering if someone can provide an example. I'm trying to copy some files to say 100 machines ( for this example... ...
Wong, Danny H.
Apr 24, 2008 at 11:23 pm
Apr 25, 2008 at 12:32 am -
Hi, Do you know if there are plans to have real Windows threads in a future perl version, 5.x or 6.x that can share the memory and would be able to share objects? I am asking because creating a multi ...
Octavian Rasnita
Apr 19, 2008 at 9:42 am
Sep 29, 2010 at 5:26 pm -
Hi guys, I am new to perl and I have to build perl with threads on Open VMS operating system can any one help me out? Thanks, Ravikumar.
Karnati, Ravi Kumar (STSD)
Apr 18, 2008 at 8:49 am
Apr 21, 2008 at 5:53 am -
Hi Thread Gurus, I was wondering how to find out a version of a thread package I'm using. How to find out threads/thread::pool version on my Linux system? Sorry for the stupid question. - - - - - ...
Wong, Danny H.
Apr 14, 2008 at 6:58 pm
Apr 14, 2008 at 6:58 pm -
Hi, i wrote a prethreading server deamon that also reuse finished threads. However I have a problem with possibel DOS attacks. $fh is the my $STATUS = ''; my %STATUSTIME = 0; my $ACCEPT_LOCK = ''; my ...
Stefan Donoval
Apr 5, 2008 at 11:23 am
Apr 6, 2008 at 6:55 pm -
Hi Thread GURUS, I'm using Linux OS. Does anyone know how to set environment variables in threads that can be utilized by the system() function. I have the following code. This sets all my ...
Wong, Danny H.
Apr 4, 2008 at 5:04 am
Apr 4, 2008 at 9:14 am -
Hi Thread Guru's, I'm just reading up on Perl threads for the first time from http://perldoc.perl.org/perlthrtut.html <http://perldoc.perl.org/perlthrtut.html . After reading the document and trying ...
Wong, Danny H.
Mar 31, 2008 at 11:01 pm
Apr 1, 2008 at 12:52 am -
Hello list, I am writing a daemon. I have a daemon that it check a folder and then throws both threads exist as files. It's well, the problem is that each thread need it ends at a certain time ...
Javier Terceiro
Mar 24, 2008 at 11:24 pm
Mar 25, 2008 at 1:50 pm -
With your indulgence, I seek enlightenment... I have looked at the documentation and studied various modules, including Thread::Queue, Thread::Queue::Any, Thread::Conveyor, ... I have read through ...
Chris Hall
Feb 27, 2008 at 3:24 pm
Mar 1, 2008 at 6:41 pm -
Hi All. I am currently playing with C#. It have a nice feature that one thread can call a function in other thread's context. (using the Invoke command, or the asynchronic BeginInvoke command) This ...
Shmuel Fomberg
Jan 8, 2008 at 8:50 pm
Jan 9, 2008 at 11:52 pm -
Hi All. I have a program where two threads are handling one socket. One thread is reading and the other is writing to the socket. (using ActiveState Perl 5.8.8_822 on WinXP) However, the writer ...
Shmuel Fomberg
Dec 24, 2007 at 8:10 pm
Dec 25, 2007 at 5:36 pm -
Hello List. Please observe the following code: ---- start code #!/usr/bin/perl -w use strict; use threads; sub thr { print "Thread running.. Done.\n"; } sub run_test { my $x = bless {Name= "Moshe"}, ...
Shmuel Fomberg
Dec 23, 2007 at 6:46 pm
Dec 24, 2007 at 6:28 pm -
Hi, I'm writing a simple tcp multithread daemon on a Linux i386 system. For this moment the script is very short. I would like have 3 distinct threads that answer to the clients. Every thread answers ...
Jack ciabatta
Nov 13, 2007 at 10:50 am
Nov 14, 2007 at 9:03 pm -
In core Perl, PL_lockhook and PL_destroyhook are both set to stubs that essentially do nothing. With PL_lockhook, calling lock($var) does nothing if threads::shared is not loaded. If threads::shared ...
Jerry D. Hedden
Nov 7, 2007 at 8:02 pm
Nov 7, 2007 at 8:02 pm -
The attached patches fix this bug. Thank to Dean Arnold for the suggestion to use a PL_ function pointer. Jerry D. Hedden wrote:
Jerry D. Hedden
Nov 6, 2007 at 7:37 pm
Nov 8, 2007 at 10:56 am -
I'm trying to come up with a fix for the bug related to storing shared objects inside of shared structures. The bug is that when any proxy objects for the shared object are destroyed, the object's ...
Jerry D. Hedden
Nov 1, 2007 at 1:06 pm
Nov 2, 2007 at 12:20 am -
Hi, I've written a Perl program that creates 10 threads (ithreads) and each thread operates on a different part of a large array. The large array is just a file read in before the threads are ...
Roland D
Aug 24, 2007 at 4:41 am
Aug 24, 2007 at 4:41 am -
I have an application that runs as a stand-alone daemon returning SOAP results. It's been running fine for a long time, but I recently noticed the memory growing and not being released after every ...
Mike Gent
Aug 21, 2007 at 8:09 pm
Aug 21, 2007 at 8:09 pm -
I think it'd be a good idea formally to document/expose threads::shared::_refcnt, though perhaps without the leading underscore. When DESTROYing a share()d (and typically XS-backed) object that ...
Mike Pomraning
Aug 18, 2007 at 3:24 pm
Aug 22, 2007 at 1:03 pm -
Hi, as I remember in an older documentation of forks.pm there was mentioned that it would be possible to use shared variables between different machines or completely different applications on one ...
Alvar Freude
Jul 1, 2007 at 10:31 pm
Jul 6, 2007 at 6:03 am -
Hi, I'm the author of a perl XS module which is a wrapper around a C++ library that is thread-safe. However in the context of Perl is doesn't seem to be. When I do the following: ...
Thomas Busch
Jun 26, 2007 at 3:27 pm
Jun 26, 2007 at 6:52 pm -
Here's another example posted to perl-ithreads@perl.org: use threads; my $my_sub = sub { }; threads- create($my_sub)- join(); Dave, any tuits available to look into all of this?
Jerry D. Hedden
Jun 26, 2007 at 1:32 pm
Jun 26, 2007 at 1:32 pm -
Hi all, I'm using perl 5.8.8 and threads 1.62. The following script: #!/usr/bin/perl use threads; use strict; my $test = sub { print("Hello, world\n"); }; my $thr = threads- create($test); $thr- ...
Thomas Busch
Jun 26, 2007 at 12:41 pm
Jun 27, 2007 at 5:57 pm -
I've been working on a simple http server that keeps a pool of threads around that do multiple crops on an image. It's a very simple blocking webserver that handles 1 request per connection. It uses ...
Arno Velds
Jun 14, 2007 at 12:07 pm
Jun 15, 2007 at 2:39 pm
Top users
Archives
- March 2013 (13)
- December 2012 (8)
- November 2011 (4)
- September 2011 (4)
- July 2011 (2)
- April 2010 (3)
- March 2010 (9)
- November 2009 (2)
- August 2009 (1)
- May 2009 (2)
- December 2008 (5)
- October 2008 (1)
- September 2008 (6)
- August 2008 (9)
- July 2008 (8)
- June 2008 (6)
- May 2008 (22)
- April 2008 (25)
- March 2008 (11)
- February 2008 (4)
- January 2008 (7)
- December 2007 (9)
- November 2007 (20)
- August 2007 (8)
- July 2007 (11)
- June 2007 (13)
- May 2007 (5)
- March 2007 (2)
- February 2007 (13)
- January 2007 (10)
- December 2006 (20)
- November 2006 (3)
- October 2006 (56)
- July 2006 (67)
- June 2006 (5)
- May 2006 (21)
- April 2006 (18)
- March 2006 (11)
- February 2006 (3)
- January 2006 (1)
- December 2005 (1)
- November 2005 (5)
- October 2005 (2)
- September 2005 (3)
- June 2005 (2)
- May 2005 (7)
- March 2005 (1)
- February 2005 (2)
- January 2005 (5)
- December 2004 (3)
- November 2004 (16)
- September 2004 (4)
- August 2004 (7)
- July 2004 (4)
- June 2004 (8)
- May 2004 (8)
- April 2004 (13)
- March 2004 (2)
- February 2004 (18)
- January 2004 (10)
- December 2003 (10)
- November 2003 (30)
- October 2003 (12)
- September 2003 (19)
- August 2003 (12)
- July 2003 (15)
- June 2003 (16)
- May 2003 (5)
- April 2003 (18)
- March 2003 (25)
- February 2003 (24)
- January 2003 (23)
- December 2002 (20)
- November 2002 (16)
- October 2002 (32)
- September 2002 (31)
- August 2002 (52)
- July 2002 (142)
- June 2002 (1)
- May 2002 (5)
- March 2002 (1)
- January 2002 (1)
- December 2001 (5)
- October 2001 (2)
- September 2001 (1)
- August 2001 (55)
- July 2001 (40)
- June 2001 (40)
- May 2001 (158)
- April 2001 (1)
