This article will introduce you to an article on the concepts of PHP-Socket-blocking and non-blocking, synchronization and Asynchronization. I hope this article will help you. This article will introduce you to an article on the concepts of
1. Conceptual understanding
In the case of network programming, we often see synchronous (Sync)/asynchronous (Async), blocking (block)/non-blocking (Unblock) Four ways to invoke: Sync:
synchronization is
when a
One, GIL: Global interpreter Lock1. GIL: Global Interpreter LockGil is essentially a mutex, which is sandwiched between the interpreter,All threads within the same process need to grab the Gil lock before executing the interpreter code2. Gil's
This article describes how to implement Python coroutine and IO multiplexing.
Is a user-mode, please link the thread micro-thread
Benefits
No overhead for thread context switching
No need for atomic operation locking and synchronization
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
Dependency ManagementDependency and Package Management Library
Composer/packagist: A package and dependency manager
Composer Installers: A multi-frame Composer Library Installer
Pickle: a php extension installer
Other
Other frameworksOther web development frameworks
Symfony cmf-Create a custom CMS Content management framework
KNP rad bundle-symfony 2 Fast Application (RAD) Pack
Framework ComponentsStandalone components from the Web development
This article to share the content is about PHP network programming of the Accept blocking model introduction, the content is very detailed, the need for friends can refer to, hope can help everyone.
The Accept blocking model is a relatively ancient
Www.php100.comhtmldujia201501058267.htmlwww.php100.comhtmldujia201501068277.html benefits are coming, PHP fans! Foreign programmer ziadoz collects various PHP resources on Github, including libraries and tools for templates, frameworks, databases,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.