Processes and threads communicate in the same way, and can be divided into two types

1. Shared storage

One process (thread) stores information in a storage area that is accessible to all processes (threads), from which another process (thread) can retrieve the information content.

2. Network communication

Processes (threads) can communicate with each other through the network for the purpose of information exchange.