{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

synch lock mutex Flashcards

(8 cards)

1
Q

________ restricts access to a shared variable to only one thread at any given time.

A

mutual exclusion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

________ is characteristic of deadlocked systems.

A

circular waiting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The strategy of denying the “circular-wait” condition ________.

A

creates a linear ordering of resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
The solution to the Dining Philosophers problem must \_\_\_\_\_\_\_\_.
prevent deadlock
prevent starvation
ensure mutual exclusion
all of the above
A

all of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If a process is given the task of waiting for an event to occur, and if the system includes no provision for signaling that event, then we have ________.

A

one process deadlock

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

________ code is not modified as it executes and may be shared by several processes simultaneously.

A

re entrant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Preventing more than one thread from accessing a shared variable simultaneously is known as ________ access to the shared variable.

A

serializing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Threads that operate independently of one another but must occasionally interact to perform cooperative tasks are said to execute ________.

A

asynchronously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly