Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 68988 - Use MP tasks when possible for interrupts on Mac
: Use MP tasks when possible for interrupts on Mac
Product: NSPR
Classification: Components
Component: NSPR (show other bugs)
: 4.0.2
: PowerPC Mac System 8.5
: P3 normal (vote)
: 4.2
Assigned To: Wan-Teh Chang
: Wan-Teh Chang
Depends on:
  Show dependency treegraph
Reported: 2001-02-15 18:57 PST by Simon Fraser
Modified: 2003-04-12 07:57 PDT (History)
8 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---

Initial cut at MP task implementation (3.17 KB, patch)
2001-02-15 18:58 PST, Simon Fraser
no flags Details | Diff | Splinter Review

Description Simon Fraser 2001-02-15 18:57:30 PST
The Mac implementation of interrupts currently uses a Time Manager task to do 
work every 8ms. Since the PrimeTime call is a 68k call, this incurs more overhead 
than we'd like.

An alternative is to use the MultiProcessor APIs when available (even on single 
CPU machines), since these will have a lower overhead.
Comment 1 Simon Fraser 2001-02-15 18:58:14 PST
Created attachment 25408 [details] [diff] [review]
Initial cut at MP task implementation
Comment 2 Simon Fraser 2001-02-15 18:59:39 PST
I've attached a first cut at an MP-task implementation of interrupts for Mac. I 
make no guarantees that this is safe, and won't crash, but it seems to work for 
me, and could be used as a basis for a real implementation.
Comment 3 Joe Francis 2001-02-15 22:23:45 PST
how about the defered task manager?  does that have 68k overhead?  It exists even 
where the mp api's dont.
Comment 4 Steve Dagley 2001-02-15 22:31:44 PST
IIRC the deferred task manager is for tasks you want to perform as you leave an 
interrupt rather than an interrupt mechanism itself
Comment 5 Kathleen Brade 2001-02-20 13:57:28 PST
I tried this patch and kept landing in macsbug (dsFSErr) and had to reboot my 
Mac.  I'm running OS 9.1.  I did try running other TCP/IP apps before mozilla but 
I still couldn't get past the profile picker dismissal.
Comment 6 Wan-Teh Chang 2001-06-05 22:13:33 PDT

Are we still going to use MP tasks?  I haven't seen any
activity on this bug.  Should I mark it "Future" or
Comment 7 Simon Fraser 2001-06-06 11:25:49 PDT
We need to do some performance evalutation on this. I'd keep it on the radar for 
now. It may be a good thing to do on Mac OS X, but not so good on 9.
Comment 8 Steve Dagley 2001-06-06 19:34:35 PDT
I don't remember if I tested this on X but I do recall it didn't work at all for 
me under 9
Comment 9 Jo Hermans 2003-04-12 03:47:56 PDT
Since we're now only supporting Mac OS X (where we don't need the MP tasks), I
think this can be closed.
Comment 10 Wan-Teh Chang 2003-04-12 07:57:05 PDT
Marked the bug WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.