What causes a program to lag?

2.19K views

Imagine you finished browsing on chrome and want to end your session… You click on that red X to close everything… And then your computer just hangs there. What causes this lag? Theoretically shouldn’t the computer be erasing stuff from memory, not lagging?

In: Technology

4 Answers

Anonymous 0 Comments

Your computer lags because there is insufficient resources available to perform tasks in real time.

Resources include CPU time, the amount and speed or you RAM, and how long it takes your hard drive to catch up.

Hard drives are by far the slowest component of your computer, so the less time you spend reading + writing to it the faster your computer will be.

If you are short on RAM your computer will begin dumping RAM contents to your Hard drive to free up space. A process called swapping.

It’s also possible your CPU is busy doing something else like loading another program.

Sometimes though it’s bad code. The program is written in an inefficient manner which causes it to use an unnecessary amount of resources for a given task.

You are viewing 1 out of 4 answers, click here to view all answers.