The answer is multitasking. This is when the OS always programs to share resources to run at the same time.
If the applications were running on separate CPUs, then it would be multiprocessing.
This would depend on the issue the computer is having.
In many cases though a simple reboot does the trick.
If your computer is slow and glitches, try cleaning it for viruses and also clean the fans. If they are dusty the computer can overheat and that can cause it to slow while its working harder to cool down.
In other cases you may not be running the proper software compatible with your device, or programs may be outdated. Check online with the company that manufactured your computer to see if you need to install updates or change certain software.
Procedure SumEvenOdd(stdin: array [0..100] of integer)
var
i, sum_even, sum_odd: integer;
begin
for i := 0 to 100 do begin
if stdin[i] < 0 then
break;
if stdin[i] mod 2 = 0 then //even number
sum_even := sum_even + stdin[i]
else
sum_odd := sum_odd + stdin[i];
ShowMessage('sum of even is ' + IntToStr(sum_even) + ' ' + 'sum of odd is' + IntToStr(sum_odd) ) ;
end;
end