In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will share with you about the common configuration of ice middleware. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Thread safety issues in the concurrency of 1:ice?
Multithreading means that multiple calls from the client can be executed concurrently on the server. In fact, multiple requests can be executed in parallel in the same servant and in the same operation of the same servant. Therefore, if the operation implementation involves manipulation of non-stack storage (such as servant member variables, global variables, or static variables), you must interlock data access to prevent data corruption.
1.1: how to determine the thread pool size basis?
1.2: internal calls use at least 2 threads
Configuration:
Dynamic configuration:
Name.Size=3
Name.SizeMax=5
Name.ThreadIdleTime=10
2: synchronous and asynchronous problems?
Synchronous programming model: the calling thread blocks until the operation returns. Each customer owns one thread.
Asynchronous programming model:
Client:
Asynchronous method invocation (AMI): make a remote call using AMI so that the calling thread does not block while the Icerun time waits for a reply. Instead, the calling thread can continue with various activities, and Ice run time notifies the application when the reply finally arrives. The notification is sent to the programming language object provided by the application through callback.
Server:
Asynchronous method dispatch (AMD): when using AMD, the server can receive a request and then suspend its processing to release the dispatch thread as soon as possible. When the process is restored and the results are obtained, the server uses the callback object provided by Ice run time to explicitly send the response.
3:oneway, twoway and two-way and one-way relationships
Oneway and twoway are a kind of agent mode.
One-way and two-way for connections.
Thank you for reading! This is the end of this article on "what are the common configurations of ice middleware?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 285
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.