جميع الكتب

مهني

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 · المسرد

ما معنى Resource-allocation graph, lock ordering؟

يُعرف أيضًا باسم: resource-allocation graph · lock ordering

Definition 13.3 University Computer Science — Year 3 · الفصل 13 — Concurrency: Deadlock, Monitors and Lock-Free Structures

A resource-allocation graph has a node for each thread and each resource, an edge P→RP \to R when thread PP waits for resource RR, and an edge R→PR \to P when RR is held by PP. Lock ordering fixes a total order on the locks and requires every thread to acquire the locks it holds together in increasing order.

A resource-allocation graph with one instance of each resource. The cycle P1, R2, P2, R3, P3, R1 is a deadlock; P4 is not in it, but waits behind it for ever. The chapter’s rag_cycle.py finds the cycle by depth-first search; with P3’s request withdrawn, it finds none.
A resource-allocation graph with one instance of each resource. The cycle P1, R2, P2, R3, P3, R1 is a deadlock; P4 is not in it, but waits behind it for ever. The chapter’s rag_cycle.py finds the cycle by depth-first search; with P3’s request withdrawn, it finds none.
The whole state graph for two philosophers, the 6 states of . T thinks, H holds the left fork, E eats; an edge is labelled with the philosopher who moves. Every state can reach the deadlock.
The whole state graph for two philosophers, the 6 states of Output 13.1. T thinks, H holds the left fork, E eats; an edge is labelled with the philosopher who moves. Every state can reach the deadlock.
اقرأ في الفصل →