100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP4610 Final with verified answers $12.99   Add to cart

Exam (elaborations)

COP4610 Final with verified answers

 4 views  0 purchase
  • Course
  • COP4610
  • Institution
  • COP4610

COP4610 Final with verified answers

Preview 2 out of 6  pages

  • September 1, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP4610
  • COP4610
avatar-seller
kirus27
COP4610 Final

Which disk allocation policy is least reliable? - correct answer ✔✔linked-list allocation



Which disk allocation policies offer efficient random accesses? - correct answer ✔✔continuous
allocation, index-based allocation, multi-level indexing



Most files are... - correct answer ✔✔small



Which namespace is most prone to name collisions? - correct answer ✔✔flat name space



free blocks, directories, file headers, indirect blocks are an example of... - correct answer ✔✔metadata



ad hoc file system check - correct answer ✔✔fsck



all operations either happen or they do not - correct answer ✔✔atomicity



transactions appear to happen one after another - correct answer ✔✔serializability



once a transaction happens, it is recoverable and can survive crashes - correct answer ✔✔durability



Write a program create_files in any language to create a file foo, sleep for 5 seconds, and create a file
bar.



Right after you start the program, press Ctrl-C to prevent the program from completing. What do you see
in the directory? - correct answer ✔✔foo



Write programs atomically_create_files and

replay_journal so that files foo and bar are atomically created. First, atomically_create_files logs <begin

, transaction> into the journal file journal. Second, atomically_create_files logs <create foo> and <create
bar> into journal. Third, atomically_create_files logs <commit> into journal. A second replay_journal
program can read the journal file to perform the actual file creations and delete journal. If there is a
crash before <commit> is written into journal, replay_journal just deletes journal. If there is a crash
before replay_journal can complete the creation of

the two files, replay_journal can be run again to recreate both files. Finally, after both files are created,
replay_journal removes journal.



You can inject crashes by exiting at various points in various programs. First, copy the program
atomically_create_files to atomically_create_files_crash. Insert a cra - correct answer ✔✔nothing



Write programs atomically_create_files and

replay_journal so that files foo and bar are atomically created. First, atomically_create_files logs <begin

transaction> into the journal file journal. Second, atomically_create_files logs <create foo> and <create
bar> into journal. Third, atomically_create_files logs <commit> into journal. A second replay_journal
program can read the journal file to perform the actual file creations and delete journal. If there is a
crash before <commit> is written into journal, replay_journal just deletes journal. If there is a crash
before replay_journal can complete the creation of

the two files, replay_journal can be run again to recreate both files. Finally, after both files are created,
replay_journal removes journal.



You can inject crashes by exiting at various points in various programs. First, copy the program
atomically_create_files to atomically_create_files_crash. Insert a cra - correct answer ✔✔foo and bar



Security is a form of... - correct answer ✔✔policy



Which of the keys are used to encrypt (not decrypt) a message when anyone can create the message,
but only A can read the message? - correct answer ✔✔public key of A



secret data remains secret - correct answer ✔✔confidentiality



unauthorized user should not be able to modify data - correct answer ✔✔integrity

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller kirus27. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82871 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart