جميع الكتب

مهني

1 Markets I: The Ecosystem and Exchange-Traded Marketsالأسواق عبر الإنترنت 2 Markets II: Rates, FX and Creditالأسواق عبر الإنترنت 3 Markets III: Commodities, Energy and Cryptoالأسواق عبر الإنترنت 4 Quantitative Methodsالأساليب عبر الإنترنت 5 Derivatives and Volatilityالمشتقات عبر الإنترنت 6 Rates, Credit, XVA and Riskالفائدة والائتمان والمخاطر عبر الإنترنت 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosالبحث عبر الإنترنت 8 Strategies I: Equities and Futuresالاستراتيجيات عبر الإنترنت 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksالاستراتيجيات عبر الإنترنت 10 Microstructure and Executionالتنفيذ عبر الإنترنت 11 Market Making and High-Frequency Tradingصناعة السوق عبر الإنترنت 12 Machine Learning for Marketsتعلم الآلة عبر الإنترنت 13 Low-Latency Softwareالتكنولوجيا عبر الإنترنت 14 Networks, Hardware and Trading Infrastructureالتكنولوجيا عبر الإنترنت 15 Research, Data and Risk Platformsالتكنولوجيا عبر الإنترنت 16 The Desk and the Firmالشركة عبر الإنترنت 17 The Industry: Firms, Roles and Careersالمسارات المهنية عبر الإنترنت 18 Interviews I: Maths, Probability and Speedالمسارات المهنية عبر الإنترنت 19 Interviews II: Markets, Trading Games and the Final Roundالمسارات المهنية عبر الإنترنت 20 Interviews III: Codeالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

Computer Science · المسرد

ما معنى Chandy–Lamport algorithm؟

يُعرف أيضًا باسم: Chandy--Lamport algorithm

Definition 25.11 University Computer Science — Year 3 · الفصل 25 — Distributed Systems: Time, Failures and Remote Calls

In the Chandy–Lamport algorithm, a process starts a snapshot by recording its own state and sending a special message, a marker, on each of its outgoing channels. When a process receives a marker on a channel: if it has not yet recorded its state, it records it, records the channel the marker came on as empty, sends a marker on each outgoing channel, and starts recording every other incoming channel; if it had already recorded its state, it stops recording that channel, whose state is the messages it received on it since it recorded its own state. The snapshot is complete when every process has received a marker on every incoming channel.

Chandy–Lamport on three branches. B1 starts; the squares are the moments the branches record their balances, shown beside them, and markers are dashed. The transfer of 20, sent before B1 recorded and received before B3 did, is in B3’s recorded balance. The transfer of 30 left B2 before B2 recorded and reached B1 in the shaded stretch, after B1 recorded and before B2’s marker: it is the recorded state of the channel from B2 to B1.
Chandy–Lamport on three branches. B1 starts; the squares are the moments the branches record their balances, shown beside them, and markers are dashed. The transfer of 20, sent before B1 recorded and received before B3 did, is in B3’s recorded balance. The transfer of 30 left B2 before B2 recorded and reached B1 in the shaded stretch, after B1 recorded and before B2’s marker: it is the recorded state of the channel from B2 to B1.
اقرأ في الفصل →