Home > Back-end >  What is the relationship between port and the process number?
What is the relationship between port and the process number?

Time:10-14

I recently in the operating system and computer network, there was a little confused!
Mentioned in computer network communications between different computer process is essentially a communication! And the port number is the process of identification, and in the
Each process in the principle of operating system does have a PID, such as the Windows task manager shows PID, now my question is:
The port number between PID is associated with a process? If so, how do they link is?
If no computer communication, how to find the specified processes through the port number?

CodePudding user response:

Thread is

CodePudding user response:

refer to the original poster usa_5678 response:
younger brother recently in the operating system and computer network, there was a little confused!
Mentioned in computer network communications between different computer process is essentially a communication! And the port number is the process of identification, and in the
Each process in the principle of operating system does have a PID, such as the Windows task manager shows PID, now my question is:
The port number between PID is associated with a process? If so, how do they link is?
If no computer communication, how to find the specified processes through the port number?

This a few words of basic right,
1, it should be great confusion
2, the nature of communication and computer has nothing to do
3, is to use back off function, or event notification

CodePudding user response:

refer to the second floor My_Love response:
Quote: refer to the original poster usa_5678 response:

I recently in the operating system and computer network, there was a little confused!
Mentioned in computer network communications between different computer process is essentially a communication! And the port number is the process of identification, and in the
Each process in the principle of operating system does have a PID, such as the Windows task manager shows PID, now my question is:
The port number between PID is associated with a process? If so, how do they link is?
If no computer communication, how to find the specified processes through the port number?

This a few words of basic right,
1, it should be great confusion
2, the nature of communication and computer has nothing to do
3, is to use back off function, or event notification

And my question is not clear, for example: qq on my computer and communications between your qq, is a process of communication between two computers, in computer network, with the port number to identify a particular process, such as port 80, and the OS in the operating system can process number assigned to each process (PID), so I want to ask if there is a relationship between the port and PID

CodePudding user response:

Port number is agreed well with what is relatively fixed, seems to be random process, such as qq can monitor a port receives the message, more qq processes are monitoring this one port information.

When the computer communication how to find the specified processes through the port number? One computer sends a message to another computer 2 a port, the port to the process of a blood in the computer 2.

I am a newcomer

CodePudding user response:

My name is zhang SAN, I have two mobile phone number, your name is bill, you have a mobile phone number,
I use one of the mobile phone to call you, this is one of my ports with your communication, mobile phone number is the port number, I and you are on the two computer process,

Process ID is assigned by the operating system kernel and management, and the port number is assigned by the communication protocol kernel and managed, as for the port number and process ID corresponding relation is assigned by the communication protocol in port to record the process ID, manage and maintain a corresponding list, it is the task of the telecommunications company!

CodePudding user response:

Simple says, is that it doesn't matter
  • Related