Alex Amado, HW6

pdf

School

Purdue University *

*We aren’t endorsed by this school

Course

10100

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

10

Uploaded by MinisterPartridge3587

Report
CS 10100 Homework 06 This is Question 1 on Page 1 CS 10100 Homework 06 Due Thursday, 10/5/2023, 11:59 pm Delete nothing from this file. Edit this file to add your typewritten answers to each question. When your answer includes a diagram make sure that it is clear and large enough to read. Ensure that your answer fits on the same page as its question. If you change the pagination of this file or if your complete answer to a question does not fit on the page with that question, then you may receive a lower score. Export your completed Word file to PDF. Upload your PDF file to Gradescope.com. It is your responsibility to upload this assignment to its correct place in Gradescope. You may upload multiple times. Your final upload will be scored. Use the download capability to check your upload. Uploading will be blocked after the due time (plus grace period). Max score = 10 points; 1 point per question. The above directions apply for all assignments uploaded to Gradescope. Why should your answer be on the same page with its question? Answer: Gradescope has been programmed to expect that your PDF file will have exactly one question and your entire answer to it on one page. This allows Gradescope to automatically find and display your answers to the instructional team for scoring. HW06 Q1. What does concurrency mean in the context of computing? What does it mean for two applications to be running at the same time on a computer with a single-core processor? What about a dual-core processor? In the context of computing, concurrency means that multiple computations and tasks are being performed at once and at the same time. When two applications are running at the same time on a computer with a single-core processor, the OS uses a technique called task switching, whereby it rapidly switches between both applications, giving each application a small slice of the CPU power. When two applications are running on a dual-core processor, each core can be assigned to run one application at the same time.
CS 10100 Homework 06 This is Question 2 on Page 2 HW06 Q2. Imagine that your Aunt Karen calls you and tells you that she had a problem with her computer. She says that it was running much more slowly than usual, and she does not know why. It was taking 5 minutes just to open her email app. An expert who was helping your aunt told her that dozens of copies of an app were running. So, the expert killed them and deleted the app from her computer, which he said should not have been there at all. Your Aunt wonders why her computer was running slowly and whether she needs to do anything else. What do you tell her? I would tell her that even though having a lot of apps open at the same time causes the computer to run very slowly, and even though that might be the main problem, I would also tell her to investigate some other potential causes. The biggest things that I would tell her to look for and do would be to scan for viruses/malware, and make sure she is running the most up-to-date software.
CS 10100 Homework 06 This is Question 3 on Page 3 HW06 Q3. You just bought a new printer to print an assignment for class. However, when you hit “print” for the first time an error message appears and asks you to install the printer driver. What is a printer driver and why do you need it? A printer driver is a component of the software that serves as bridge of communication between the computer and the printer. It is essential for the printer to function properly with the computer, and it serves many big purposes. It translates text from the computer to the printer, configures the printer, handles error, and many other purposes.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
CS 10100 Homework 06 This is Question 4 on Page 4 HW06 Q4. How is a hypervisor software different from an operating system? What are the similarities and differences in how they handle concurrency? A hypervisor and an OS are both crucial software components of a computer, but they serve different uses in how they handle currency. While they both ensure that multiple tasks can run at the same time without conflicts, a hypervisor is designed to create and manage multiple virtual machines on a single machine. Its primary job is to ensure virtualization, which allows guest operating systems to run concurrently on a physical machine and server. While both hypervisors and operating systems deal with concurrency, hypervisors have a much broader scope that operating systems.
CS 10100 Homework 06 This is Question 5 on Page 5 HW06 Q5. You are tasked with putting together a 1,000-piece puzzle as quickly as possible. You can enlist in the help of as many people as you want. Would you recruit 1,000 people to each handle one piece of the puzzle? Would you recruit two or three people to help? How does your choice this relate to the fact that having N cores doesn't mean that a computer will run N times faster? I would recruit 50 people to each be in charge of putting 20 pieces of the puzzle together. 50 people controlling 20 pieces is enough for the puzzle to be completed in an effective manor, while not getting in the way of each other. There is a point, especially in this case, where more people do not mean that the project will get done faster. If, in this scenario, you gathered 1,000 people to help put the puzzle together, it would be much harder because they would all get in the way of each other. This relates to the fact the just because you have N cores in your computer, that does not mean that your computer runs N times faster.
CS 10100 Homework 06 This is Question 6 on Page 6 HW06 Q6. You are watching the season finale of your favorite Netflix show on your phone. There is less than 5 minutes so you continue to watch even though your battery is at 3%. All of sudden your phone dies. Did your phone really run out of battery? Why would your phone shut down before completely running out of battery? Your phone would shut down before completely running out of battery to prevent damage of the battery and ensure its longevity. Your phone shutting down even though it has some battery percentage left is a protective measure put in place my engineers of the phone to extend battery life, prevent data loss, and it is important to the battery does not push past its limits.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
CS 10100 Homework 06 This is Question 7 on Page 7 HW06 Q7. Apart from handling concurrency, the Operating System provides a multitude of other facilities. Give three examples of additional facilities that an Operating System provides. The OS provides many other facilities than just currency management. The OS oversees organizing files and provides tools and services for creating, editing, managing, and editing files on the computer. The OS also manages and controls all external hardware devices connected to the computer, these include mice, external monitors, and webcams. Finally, the OS manages all the memory on the computer, and manages memory resources and makes sure that multiple applications can run simultaneously.
CS 10100 Homework 06 This is Question 8 on Page 8 HW06 Q8. You are surfing the internet for Memes when you stumble upon a website with “HELLO WORLD” in bright green letters and an image. If you check the source code, (the HTML code) would the “HELLO WORLD” be in green? Would the image appear? Explain each. If checked the source (HTML) code, you would see that “HELLO WORLD” is not in green, but instead next to the code it says something like “colored green”. You would also not see the image itself and would see that instead of the image itself there would be a link to the image. Code itself is just words and letters, with no colored text and no images.
CS 10100 Homework 06 This is Question 9 on Page 9 HW06 Q9. A supreme court law clerk is writing a 10,000-page legal brief late into the night. While typing, the clerk notices no issues with adding words to page 10,000, however, when he fixes a typo on page 1, the clerk notices that there is a noticeable delay. The clerk asks you if he should get his computer fixed because of this delay. What would you tell the clerk? I would tell the clerk that delays when editing a large document, such as this 10,000-page legal brief, delays do happen, and it is a common behavior and it does not mean that there is a problem with the computer. Nonetheless, it is important to make sure that the computer’s hardware and software are up to date to keep up with tasks.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
CS 10100 Homework 06 This is Question 10 on Page 10 HW06 Q10. All Internet browsers allow users to view the HTML source code of any web page they visit. Find the HTML source code of https://protect.purdue.edu. You should: a. List which internet browser you are using Chrome b. The steps of how you bring up the HTML course code of the page In the search bar, before https, you put “view-source’ c. Take a screenshot of the page with HTML source code and submit the screenshot