FAQ

Search Discussions

323 discussions - 1,404 posts

  • ithreads folk, Thread-Barrier-0.300_02 is on CPAN, introducing barrier actions, timed waits, and brokenness (the good kind). It's backward compatible, and has a bugfix, too. There are tests for ...
    Mike PomraningMike Pomraning
    Aug 8, 2013 at 4:17 pm
    Aug 8, 2013 at 4:17 pm
  • The threads::shared POD warns: [A shared] object's destructor may get called multiple times, once for each thread's scope exit. Is this caution still accurate? Beginning with perl 5.8.9 / threads ...
    Mike PomraningMike Pomraning
    Jun 22, 2013 at 4:27 pm
    Jun 24, 2013 at 2:33 pm
  • 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 SmeenkSander 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 CaponiAlfonso 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 MertensDavid 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 MertensDavid Mertens
    Dec 3, 2012 at 4:53 am
    Jan 2, 2013 at 11:26 pm
  • Mail transaction failed. Partial message is available.
    LizLiz
    Nov 20, 2011 at 6:16 am
    Nov 20, 2011 at 6:16 am
  • 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 caponiAlfonso 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 CirnePedro 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 caponiAlfonso 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 KumarAjeet 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 ...
    SriSri
    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. ...
    BarriesBarries
    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. HeddenJerry 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.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, MarcoBlanchette, 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. McMillonCraig 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 MarinoPaul 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 FombergShmuel 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 KarcherThomas 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 WolfJosef 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 ...
    JavierJavier
    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.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.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 TerceiroJavier 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.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 kumarRavi 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 ArnoldDean 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.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 RasnitaOctavian 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)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.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 DonovalStefan 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.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.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 TerceiroJavier 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 HallChris 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 FombergShmuel 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 FombergShmuel 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 FombergShmuel 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 ciabattaJack 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. HeddenJerry 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. HeddenJerry 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. HeddenJerry 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 DRoland 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 GentMike 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 PomraningMike 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 FreudeAlvar 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 BuschThomas 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. HeddenJerry D. Hedden
    Jun 26, 2007 at 1:32 pm
    Jun 26, 2007 at 1:32 pm
Group Navigation
period‹ prev | Latest | first ›

Top users

Liz: 166 posts Arthur Bergman: 86 posts Artur: 71 posts Jerry D. Hedden: 59 posts Dean Arnold: 36 posts Jerry D. Hedden: 33 posts Michael J. Pomraning: 30 posts Ray Hilton: 27 posts Dan: 27 posts Steve Schein: 25 posts A Bergman: 24 posts Jarkko Hietaniemi: 24 posts Jerry D. Hedden: 24 posts Alan Burlison: 22 posts Chris Fowler: 20 posts Daniel Rychlik: 19 posts Stas Bekman: 18 posts Eric Rybski: 18 posts Nicholas Clark: 17 posts Doug MacEachern: 17 posts
show more