Processes, threads, IP, inter-port relationship

Processes, threads, IP, inter-port relationship

Process refers to an application running on the system;

The thread is the basic unit of the system processor time allocation of resources, or a unit within the process of implementation-independent.

To the operating system, which is the thread scheduling unit . A process including at least one thread, the thread is usually called the main thread . A process and then create one or more additional threads from the main thread begins execution, based on the so-called multi-tasking multi-threaded.

IP address is an address that identifies the network devices in manifestation, IP addresses are divided into: IPv4 and IPv6.

URL = IP + port number  ( can be positioned in a particular network service window provides a function address)

Port is the export computer to communicate with the outside world, the port received a packet to the specified application to deal with. (Like: the customer all the way to come to your hotel window ordering, tell the chef what to eat dinner, and then you can cook inside Houchu operating procedures cooking cooking)

Processes or threads can simultaneously monitor multiple ports. (Just like: you unfortunately have only one cook to cook, but there are a number of Dafan window)

 

Guess you like

Origin www.cnblogs.com/111testing/p/11846317.html