Reputation: 1
I open two youtube tabs inside a single chrome window and in one tab i am listening to a song and on another an educational video.
How does chromes knows where to send the specific data (for song and video)as both tabs are having same ip address & port number?
Upvotes: 0
Views: 296
Reputation: 429
You're right about (IP+port) needed to reach a particular process on your host. But that process might delegate the task to either another worker process or a thread(depending on browser implementation), and keeps a mapping of the threadID and the HTTP connection
However this statement is wrong
both tabs are having same ip address & port number
each tab might have its own process and will have a pid.
Upvotes: 1