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

Fun fact, your computer CANNOT MULTITASK. instead it switches apps VERY FAST and work on them. so fast is seems like its happening all at once.

All the meanwhile, stuff is being shoved into RAM, random access memory. When that RAM is stuffed, GG WP, computer freeze.

ELI5, try to do 2X2X2X…. at some point you just forget or freeze up.

THERE IS ALSO the other case, where faulty code pops up, causing a endless loop, and your pc have no idea what to do, it keeps excecuting this line of code and is just stuck there.

This is why its so important to QC programs.

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