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, MSGID_RANDY 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: Robert Dewar Subject: Re: Context Switching Date: 1999/05/11 Message-ID: <7h9nl5$9hr$1@nnrp1.deja.com>#1/1 X-Deja-AN: 476631846 References: <3736e104@eeyore.callnetuk.com> <37383ab3@eeyore.callnetuk.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue May 11 16:59:19 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-11T00:00:00+00:00 List-Id: In article <37383ab3@eeyore.callnetuk.com>, "Nick Roberts" wrote: > In another thread I said some processors could do a context switch in a few > 'picoseconds'. I am grateful to Keith Thompson pointing out to me that I > meant 'nanoseconds'. It'll happen one day, of course, but not until they've > solved the problem of those pesky tunnelling electrons. Sorry! You have to be careful here. The raw hardware speed for a context switch is not what is interesting, what is interesting is the time for executing the COMPLETE pthread call that causes the context switch. For example, the actual raw hardware speed for changing a task priority is probably just a single store instruction, but it may well take hundreds or even thousands of instructions to filter through the necessary kernel machinery to get to the point of issuing that store! --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---