A
A
Anarbek Balmukanov2015-03-02 17:45:57
Machine translation from one language to another
Anarbek Balmukanov, 2015-03-02 17:45:57

Busy loop - what kind of cycle is this?

According to the meaning, I understand that this is an endless cycle (active cycle). I can be wrong. In Habré, this word is used without translation. Help me understand the meaning.

.text
.globl	start
.code16

start:
        jmp	start

In such a code, he met me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MiiNiPaa, 2015-03-02
@Anarbek

Yes, this is a loop that constantly checks for some condition. Constantly spends processor time checking conditions, and therefore busy.
Something like

while(status != DONE) {
    Sleep(500);
}

An alternative is the callback mechanism, when the execution of the thread is stopped and continued by an external signal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question