<s>
Foreground-background	B-Operating_System
is	O
a	O
scheduling	O
algorithm	O
that	O
is	O
used	O
to	O
control	O
an	O
execution	O
of	O
multiple	O
processes	O
on	O
a	O
single	O
processor	O
.	O
</s>
<s>
It	O
is	O
based	O
on	O
two	O
waiting	O
lists	O
,	O
the	O
first	O
one	O
is	O
called	O
foreground	O
because	O
this	O
is	O
the	O
one	O
in	O
which	O
all	O
processes	O
initially	O
enter	O
,	O
and	O
the	O
second	O
one	O
is	O
called	O
background	O
because	O
all	O
processes	O
,	O
after	O
using	O
all	O
of	O
their	O
execution	B-Library
time	I-Library
in	O
foreground	O
,	O
are	O
moved	O
to	O
background	O
.	O
</s>
<s>
The	O
advantage	O
of	O
the	O
foreground-background	B-Operating_System
algorithm	O
is	O
that	O
it	O
gives	O
the	O
process	O
the	O
opportunity	O
to	O
execute	O
immediately	O
after	O
its	O
creation	O
,	O
but	O
scheduling	O
in	O
the	O
background	O
list	O
is	O
pure	O
round-robin	B-Algorithm
scheduling	I-Algorithm
.	O
</s>
