How web browsers use process & Threads

Firefox Vs Chrome

Thilina Madushan
2 min readJul 17, 2020

Treads are the way for a program to divide it self into two or more simultaneously running task.In the web browsers tread is contained inside a process and different treads in the same process share resources.But the main goal is to keep the main thread and IO tread responsive.

Now we look how use this technology in the Chrome and the Firefox.

In chrome, each and every tab you open gets its own content process.If you open 10 tabs then its run in 10 processes.In this way we can get best performance but the problem is when its applicable its consume the memory and power. But Firefox does not do that.In the Firefox ,first 4 tabs each use those 4 processes, And the other tabs(threads) run in that processes.

In 64-bit mode Chrome use 1.77x more RAM than Firefox and In 32-bit mode its going to 2.44x .

Benefits

* Responsiveness: Multitheading an interactive applications may allow a program to continue running even if part of it is blocked or is performing a lengthy operation.

* Thereby increasing responsiveness to the user.

Ex:- A Multithreaded web browser could allow user interaction in one tread while an image was being load in another thread.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Thilina Madushan
Thilina Madushan

Written by Thilina Madushan

Software Engineering undergraduate at University of Kelaniya

No responses yet

Write a response