mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Terje Eggestad <terje.eggestad@scali.com>
To: Electroniks New <elektr_new@yahoo.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: sleep in asm
Date: 22 Jan 2003 13:40:31 +0100	[thread overview]
Message-ID: <1043239231.2048.9.camel@pc-16.office.scali.no> (raw)
In-Reply-To: <20030122113050.65639.qmail@web14707.mail.yahoo.com>


a) a little but of math helps, on a 1GHz pentium 16000 nops is only
about 5-6 usecs. This is superscalar machines that do three inst per
clock.

b) are you in user space or kernel space?

c) if the answer in b) is that your doing some embedded stuff, you Q on
if it matter if you're in real or protected mode indicate that, then
you're on the wrong mailing list. pls stop posting .

d) 1 sec cpu time, or wall time?

e) do you want to sleep, or burn CPU cycles?

f) why assembly?

 

On ons, 2003-01-22 at 12:30, Electroniks New wrote:
> Hi,
>   What is the equivalent of sleep in assembly.
>   I tried jmps and nops i even kept loops.for jumps
> and nops but all in vain .
>   Does it make any difference if i am doing this real
> mode instead of pmode ? doesnt the functions nop and
> jmps   do what they are supposed to do . 16000 nops
> doesn't sleep for 1 sec.
> 
> Any help would be appreciated. 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-- 
_________________________________________________________________________

Terje Eggestad                  mailto:terje.eggestad@scali.no
Scali Scalable Linux Systems    http://www.scali.com

Olaf Helsets Vei 6              tel:    +47 22 62 89 61 (OFFICE)
P.O.Box 150, Oppsal                     +47 975 31 574  (MOBILE)
N-0619 Oslo                     fax:    +47 22 62 89 51
NORWAY            
_________________________________________________________________________


  reply	other threads:[~2003-01-22 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22 11:30 Electroniks New
2003-01-22 12:40 ` Terje Eggestad [this message]
2003-01-22 12:45 ` Richard B. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1043239231.2048.9.camel@pc-16.office.scali.no \
    --to=terje.eggestad@scali.com \
    --cc=elektr_new@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®