search
HomeJavaJavaBaseWhat is process synchronization and synchronous transmission in java

What is process synchronization and synchronous transmission in java

Process synchronization

means that when a function call is issued, the call will not return until the result is obtained. That is to say, you must do one thing one at a time, and wait until the previous one is completed before you can do the next thing.

For example: after getting up in the morning, wash up first and then eat. You cannot start eating before washing up.

According to this definition, in fact, most functions are called synchronously (such as sin, isdigit, etc.). But generally speaking, when we talk about synchronous and asynchronous, we specifically refer to tasks that require the cooperation of other components or take a certain amount of time to complete.

Recommended online video tutorials: java free video tutorials

The most common example is: sendmessage. This function sends a message to a window and does not return until the other party has processed the message. After the other party has finished processing, the function returns the result value returned by the message processing function to the caller.

Synchronous transmission

Usually, synchronous transmission uses data blocks as the transmission unit. A special character or bit sequence must be appended to the head and tail of each data block to mark the beginning and end of a data block. Generally, a check sequence (such as 16 bits or 32 bits) must be appended. bit CRC check code) in order to perform error control on the data block.

The so-called synchronous transmission means: the time interval between data blocks is fixed, and their time relationship must be strictly specified.

Recommended related articles and tutorials:

Getting started with java

The above is the detailed content of What is process synchronization and synchronous transmission in java. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool