Jim Morrison [Mailing-Lists] wrote: [...]
I'm just wondering how Linux (RedHat 7.2) deals with dual processors,[...]
Does linux just take care of 2 proccessors or does the code have to be compatable?
If you are using a non threaded mod_perl, which is the case with
- mod_perl 1.0 - mod_perl w/ prefork mpm and you don't spawn your own threads, which you can.
then your code will work all the same.
The only difference is that if your code had any race conditions, chances are higher that you will hit them on a machine with more than one CPU.
On race conditions see:
http://perl.apache.org/docs/1.0/guide/debug.html#Critical_Section
If you use mod_perl 2.0 w/ threaded mpm, your code and all libs that you use have to be re-entrant and thread-safe, no matter whether you are using a single- or multi-processor machine. Again if you code does have thread related problems, you are more likely to see them on an SMP machine.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com