in reply to Re^2: If I am tied to a db and I join a thread, program chrashes
in thread If I am tied to a db and I join a thread, program chrashes

Hello Monks and lance0r I am facing the problem with a similar situation but when I want to connect with different schemas on the same machine. Actually I need to run perl reports but need to run them parallel with different schemas. Would that thread make any problem? Initially i was planning to use fork() inbuilt function but then we changed to 'use thread' but now its giving me segmentation fault error. Can anyone please help me out here?
  • Comment on Re^3: If I am tied to a db and I join a thread, program chrashes

Replies are listed 'Best First'.
Re^4: If I am tied to a db and I join a thread, program chrashes
by Corion (Patriarch) on Jul 06, 2009 at 13:12 UTC

    If your question is about DBI, read the discussion of Threads and Thread Safety. If it's not about DBI, it's even less clear to me about what your question is. But in general, you will have much more luck in launching separate programs instead of trying to use fork() or threads to run DBI things in parallel.