SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : MSFT Internet Explorer vs. NSCP Navigator -- Ignore unavailable to you. Want to Upgrade?


To: nommedeguerre who wrote (20262)6/25/1998 8:26:00 PM
From: Justin Banks  Read Replies (1) | Respond to of 24154
 
Norm -

what is it on an SGI?

Using SGI sproc(1), I get :

dervish<root>2% ./context
Performing 2000000 context switches between 2 SPROCS...

2000000 context switches took 104.920468 seconds
52.46 uS per context switch

on my desktop @ home. I've been planning on rewriting this code to use pthreads, which should give a better result. If you're interested, I'll let you know when I do.

Between processes, I get :

dervish<root>4% ./context -p
Performing 2000000 context switches between 2 PROCESSES...

2000000 context switches took 101.916830 seconds
50.96 uS per context switch

As an aside, see isdmag.com

Maybe I should run the process switch bench on Linux and NT as well - it's POSIX, so NT should do it?

-justinb