सभी किताबें

पेशेवर

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करियर ऑनलाइन
ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

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.
अध्याय में पढ़ें →