Posted on 2000-03-02
Last Modified: 2013-12-25
How Is it possible to make the cgi environment multithreaded? What kind of changes we need to make.  
Question by:seethiru
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 10

Expert Comment

ID: 2576864
using win32 of unix ????

theres a win32 thread module, in active state this is still beta.  

Author Comment

ID: 2577437
The question is focussed on unix.

Author Comment

ID: 2577439
Adjusted points to 10
LVL 10

Accepted Solution

makerp earned 10 total points
ID: 2579422
right then

two options for creating new proccess.


forking is a bit of a more aggresive answer and takes the follwoing form

if( $pid = fork )
     # parent code here
     # proccess id avalibe in $pid
     # child here
     # parent processid avalible with
     # getppid()
     die "can fork() :".$!;


these are a more light wait answer but still only beta, well atleast in perl 5.005 and the perl build you have must be built for multi threading. see

# you can pass parameters to the function\sub as a second argument to the thread function.

$t = new Thread(mysub);

sub mysub()
     print("Heelo from mr thread");

this will create a new thread and the threads starting point will be mysub

there are quite a few thread functions for control etc see, you can get the module desciprtion etc....

hope this helps

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question