NPTEL Advanced Computer Architecture Week 12 Assignment Answers 2024

NPTEL Advanced Computer Architecture Week 12 Assignment Answers 2024

1. Consider the following statements.

S1: If a program has a data race, it may or may not show up in an SC execution.
S2: Two vector clocks are always comparable.

  • Only S1 is true.
  • Only S2 is true.
  • Both S1 and S2 are true.
  • Both S1 and S2 are false.
Answer :- 

2. PLSC translates the axioms of _____________.

  • Parallelism
  • Multi-threading
  • Coherence
  • Multi-tasking
Answer :- 

3. Which two factors determine a memory model?

  • Shared resources, coherence
  • Access delay, miss rate
  • Write atomicity, program-order
  • Shared variables, locks in a system
Answer :- 

4. Consider the following statements.

S1: Eager version management writes directly to the memory.
S2: Eager version management does not require maintaining an undo log.

  • Only S1 is true.
  • Only S2 is true.
  • Both S1 and S2 are true.
  • Both S1 and S2 are false.
Answer :- 

5. ________________ transaction management checks for conflicts as soon as a transaction accesses a memory location.

  • Eager
  • Lazy
  • Atomic
  • Non-Atomic
Answer :- 

6. Which of the following are the two types of concurrency control?

  • Transactional, Non-transactional
  • Optimistic, pessimistic
  • Eager, lazy
  • Atomic, Non-atomic
Answer :- 

7. Which sequential ordering is consistent with the real-time ordering?

  • Serializable
  • Strictly serializable
  • Eager
  • Lazy
Answer :- 

8. Bartok STM applies ______________version management and _______________ conflict detection.

  • Eager, lazy
  • Lazy, eager
  • Optimistic, pessimistic
  • Pessimistic, Optimistic
Answer :- 

9. Consider the following statements.

S1: TL2 STM uses lazy version management.
S2: TL2 STM uses a global timestamp.

  • Only S1 is true.
  • Only S2 is true.
  • Both S1 and S2 are true.
  • Both S1 and S2 are false.
Answer :- 

10. Which of the following is FALSE about software transactional memory (STM)?

  • STM systems do not handle non-transactional accesses
  • Acquiring and releasing locks is expensive in STM.
  • Maintaining undo and redo logs is difficult.
  • STM is much faster than hardware transactional memory (HTM).
Answer :- 

Leave a Comment