In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you the Ceph network layer code thread example analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Where does the Pipe write thread start?
Pipe * SimpleMessenger::connect_rank ()-> pipe- > start_writer (); / / start the WriterThread
Where does the Pipe reader thread start?
Void SimpleMessenger::ready ()-> accepter.start (); Pipe * SimpleMessenger::add_accept_pipe (int sd) {p-> start_reader (); p-> pipe_lock.Unlock (); pipes.insert (p); accepting_pipes.insert (p); lock.Unlock (); return p;} void Pipe::start_reader () {assert (pipe_lock.is_locked ()); assert (! reader_running); if (reader_needs_join) {reader_thread.join () Reader_needs_join = false;} reader_running = true; reader_thread.create (msgr- > cct- > _ conf- > ms_rwthread_stack_bytes);} void Pipe::reader () / / start the reader thread.
Where does the DispatcherQueue thread start?
Void SimpleMessenger::ready () {ldout (cct,10)
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: 0
*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.