GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which research method involves following one person or a sma…

Which research method involves following one person or a small group over a long period?

Read Details

William James was the primary founder of which school of tho…

William James was the primary founder of which school of thought?

Read Details

Part V: Error Correction: Each sentence has at least one err…

Part V: Error Correction: Each sentence has at least one error. Correct the errors.   Note: Select #1-11 and use Ctrl C to copy and Ctrl V to paste.     Where we are going for dinner it is a surprise. They asked me that what I needed for my trip. Can you tell me where should I go to print out my assignment? I wonder does the cafeteria have good food. The professor asked us that we had any questions about noun clauses. The mechanic told her that the car will be ready last Friday, but it wasn’t. My friend asked, Is it true that he lived in ten countries before he moved to France?” I believe that will I get that job. I don’t know why we need to do that exercise or not. The professor asked the students, “if they needed more time for the test.” It is a fact that we revise our writing assignments is good practice.

Read Details

Part I: Change the question in parentheses (  ) to a noun cl…

Part I: Change the question in parentheses (  ) to a noun clause to complete the sentence. Use correct punctuation. Use the same verb tense used in the question.                          (What happened to the vase?) I don’t know                                                                   .   It was broken when I came home.

Read Details

Part II: Complete this sentence with your own original thoug…

Part II: Complete this sentence with your own original thoughts.                          The fact that                                                       

Read Details

Part VI: Change the quoted speech below into reported speech…

Part VI: Change the quoted speech below into reported speech. Use the formal sequence of verb tenses. The responses are started for you—just complete the reported speech. Example: “Will you correct my responses to Exercise 42?” my classmate asked the professor. Answer:  My classmate asked the professor if she would correct her responses to Exercise 42. Source for quoted speech: Times in Plain English/Pogrebin. (2017, February 25). “Pineapple on Pizza? The Global Debate” One reported asked, “Why does everyone hate pineapple on pizza?” One reporter asked

Read Details

Part II – Question 6: File Systems (30 points) Note: Canvas…

Part II – Question 6: File Systems (30 points) Note: Canvas will not grade this question. Work on your separate answer sheet. Submit the answer sheet via Canvas Inbox (preferred) or email within 10 minutes after the exam ends. (a) (10 points) A file system uses inodes with the following structure: 10 direct data-block pointers 1 single indirect pointer 1 double indirect pointer (no triple indirect) Pointer size = 8 bytes (i) (4 pts) With a block size of 2 KB, report: N (pointers per indirect block), direct capacity (KB), single-indirect capacity (KB), double-indirect capacity (MB), and approximate total max file size (MB). (ii) (3 pts) Now block size is halved to 1 KB, all other parameters unchanged. Report the same five quantities as in (i). (iii) (3 pts) Answer the following: Shrinkage factor = total from part (i) ÷ total from part (ii) Which level contributes most to the shrinkage (direct / single / double)? Why that level dominates. (b) (10 points) A file system uses the VSFS layout. Inodes have 12 direct pointers plus 1 single indirect pointer. Block size = 4 KB; each directory fits in a single data block. A user process executes: int fd = open(“/home/alice/project/src/main.c”, O_RDONLY); read(fd, buf, 60 * 1024); // read the entire 60 KB file The root directory’s inode number is a well-known constant (e.g., inode 2), so the OS does not need to search the disk to find which inode belongs to the root. However, reading the root inode’s contents from disk (to obtain its data-block pointers) and reading the root directory’s data block are still disk I/Os that must be counted. (i) (5 pts) Assume no caching. Report: path depth d, open() disk reads (formula 2d + 1), number of file data blocks to read, indirect-block reads (0 if the file fits in direct pointers), read() disk reads (data + indirect), and the total disk reads. (ii) (3 pts) Now the inode of /home/alice/ and the data block of /home/alice/ are already cached in memory. Report: number of reads skipped by the cache, new open() disk reads, read() disk reads (unchanged from part (i)), and the new total disk reads. (iii) (2 pts) For a workload that repeatedly opens and reads many different files located under the same directory tree (e.g., a compiler recursively reading every source file under /home/alice/project/), which category of cached structures reduces disk reads the most? Choice (circle one): directory inodes & directory data blocks   /   file data blocks. Provide a brief justification. (c) (10 points) A file system uses journaling with the standard three-step protocol (journal write → commit marker → checkpoint). A process performs a write() call that appends one new data block to an existing file. A power failure occurs at one of two different moments during the update: Crash A: The journal write (step 1) has completed and been persisted to disk. The commit marker has not yet been written. Crash B: The commit marker (step 2) has been written to disk. The checkpoint (step 3) has not yet completed — the real bitmap / inode / data-block locations have not yet been updated. (i) (6 pts, 1 pt per cell) For each crash scenario, report: recovery action, whether the user’s write is reflected after reboot (Yes / No), and whether the file system is consistent after recovery (Yes / No). (ii) (4 pts) A student claims: “Because of journaling, once a write() system call returns, no data can ever be lost even if the machine crashes immediately afterward.” Is this claim correct? (Correct / Incorrect) Which crash scenario best supports your answer? (A / B) Justification.

Read Details

Hebbian plasticity is:

Hebbian plasticity is:

Read Details

VGLUT1 puncta within microglial soma did not differ between…

VGLUT1 puncta within microglial soma did not differ between groups in either the CA1 or CA3 SR. The authors note this is consistent with findings from Bellesi et al. (2017) and use it to propose a temporal hypothesis. What is that hypothesis?

Read Details

Which property of the neuronal cell membrane is responsible…

Which property of the neuronal cell membrane is responsible for the neuron’s ability to generate electrical signals?

Read Details

Posts pagination

Newer posts 1 2 3 4 … 82,663 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top