From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71b19e01eae3a390 X-Google-Attributes: gid103376,public From: "Tarjei Tj�stheim Jensen" Subject: Re: Context switching (was: delay until and GNAT) Date: 1999/05/11 Message-ID: <7h9cgs$c862@ftp.kvaerner.com>#1/1 X-Deja-AN: 476580821 Content-Transfer-Encoding: 7bit References: <7gpukr$s82$1@nnrp1.dejanews.com> <7grkbb$cee$1@nnrp1.deja.com> <7grvka$lc5$1@nnrp1.deja.com> <7h1e10$drg$1@nnrp1.deja.com> <3736e102@eeyore.callnetuk.com> <7h83ag$o8$1@nnrp1.deja.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Kv�rner Oil & Gas Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-11T00:00:00+00:00 List-Id: Robert Dewar wrote : > "Nick Roberts" wrote: >> [:2:] Many processor architectures today provide built-in >> support for (normal) context switching, so that the operating >> system will usually have very little to do with the speed of >> these context switches. Switches can generally be achieved >> within a few dozen memory clock cycles (typically >> out-of-cache), which will be, for most modern microcomputers, >> in the ballpark of 1 microsecond (+/-1oom). > >Can you say what processor architectures you have in mind here? >Certainly none of the ones that GNAT is commonly used on ... >The context switch on the x86 in particular is horribly slow, >and one would like to avoid it in a high efficiency x86 exec This is from memory, so it might not be accurate: The transputer and the ARM. The ARM has a complete register set available for interrupt handling so you don't have to save and restore the user mode register. I believe the transputer had special hardware support for context switching. What it exactly did is something which I don't remember. Greetings,