4. Discuss the advantages and disadvantages of using the same system call interface for both files and devices. Why do you think operating system designers would use the same interface for both

Answers

Answer 1

Answer:

According to the principles of design, Repetition refers to the recurrence of elements of the design

One of the advantages of this is that it affords uniformity. Another is that it keeps the user of such a system familiar or with the interface of the operating system.

One major drawback of this principle especially as used in the question is that it creates a familiar route for hackers.

Another drawback is that creates what is called "repetition blindness". This normally occurs with perceptual identification tasks.

The  phenomenon may be  due to a failure in sensory analysis to process the same shape, figures or objects.

Cheers!


Related Questions

A customer contacts the help disk stating a laptop does not remain charged for more than 30 minutes and will not charge more than 15%. Which of the following components are the MOST likely causes the issue? (Select three.) A. LCD power inverter B. AC adapter C. Battery D. Processor E. VGA card F. Motherboard G. Backlit keyboard H. Wireless antenna

Answers

Answer:

A. LCD power inverter

B. AC adapter

C. Battery

What is the difference between requirements and controls in the security process? Give examples of each.

Answers

Answer:

Security controls are those measures taken to prevent, identify, counteract, and reduce security risks to computer systems, whereas, Security Requirements are guidelines or frameworks that stipulates measures to ensure security control.

Explanation:

Security controls encompass all the proactive measures taken to prevent a breach of the computer system by attackers. Security requirements are those security principles that need to be attained by a system before it can be certified as safe to use.

Security controls are of three types namely, management, operational, and technical controls. Examples of technical controls are firewalls and user authentication systems. A statement like 'The system shall apply load balancing', is a security requirement with an emphasis on availability.

The terminal window wants to evaluate your current bash knowledge by using the ~/workspace/nested-directories folder:

a. cd into the nested-directories/nested-level-1/ directory by using an absolute path
b. cd into the nested-level-3/ directory by using a relative path
d. Move the entire ~/workspace/config/ directory to the nested-level-1/ directory

Answers

Answer:

a. cd into the nested directories/ nested - level - 1 / directory using an absolute path

Explanation:

The directory is a location on the hard disk, which is also called a folder. It contains the files and also contains the other directories called sub directories.

A path to a file is merged with a slash and determines the file or directory in the operating system. An absolute path is the location file or directory from the actual file system

The directory's absolute path starts with a slash, and all slashed in the directory separates the directions.

All directions in the absolute path are written on the left side. The last name in the path may belong to the file, and the pwd command can determine the current directory.

The relative path is the location of the file. It begins with the working directory. An absolute path is unambiguous and working with deeply nested directories.

There are two commands which are used such as

cd pwdcd is used for changing directorypwd is used for the working directory

We easily navigate the file system with the help of an absolute path.

#Write a function called random_marks. random_marks should #take three parameters, all integers. It should return a #string. # #The first parameter represents how many apostrophes should #be in the string. The second parameter represents how many #quotation marks should be in the string. The third #parameter represents how many apostrophe-quotation mark #pairs should be in the string. # #For example, random_marks(3, 2, 3) would return this #string: #'''""'"'"'" # #Note that there are three apostrophes, then two quotation #marks, then three '" pairs. #Add your function here!

Answers

Answer:

def random_marks(apostrophe, quotation, apostrophe_quotation):

   return "'"*apostrophe + "\""*quotation + "'\""*apostrophe_quotation

   

print(random_marks(3, 2, 3))

Explanation:

Create a function called random_marks that takes apostrophe, quotation, and apostrophe_quotation as parameters. Inside the function, return apostrophe sign times apostrophe plus quotation mark times quotation plus apostrophe sign quotation mark times apostrophe_quotation.

Note that plus sign (+) is used to concatenate strings. Also, if you multiply a string with a number, you get that number of strings ("#"*3 gives ###).

Then, call the function with given parameters and print

What are the pros and cons of using a linked implementation of a sparse matrix, as opposed to an array-based implementation?

Answers

Answer:

Linked lists and arrays are both linear data structures but while an array is a collection of items that can be accessed randomly, a linked list can be accessed sequentially.

A sparse matrix contains very few non-zero elements. For example;

_                        _

|  0   0   3  0  6    |

|   0   5   0  0  4   |

|   2   0   0  0  0   |

|_ 0   0   0  0  0 _|

In the implementation of a sparse matrix, the following are some of the pros and cons of using a linked list over an array;

PROS

i.  Linked lists are dynamic in nature and are readily flexible - they can expand and contract without having to allocate and/or de-allocated memory compared to an array where an initial size might need to be set and controlled almost manually. This makes it easy to store and remove elements from the sparse matrix.

ii. No memory wastage. Since the size of a linked list can grow or shrink at run time, there's no memory wastage as it adjusts depending on the number of items it wants to store. This is in contrast with arrays where you might have unallocated slots. Also, because the zeros of the sparse matrix need not be stored when using linked lists, memory is greatly conserved.

CONS

i. One of the biggest cons of linked lists is the difficulty in traversing items. With arrays, this is just of an order of 0(1) since the only requirement is the index of the item. With linked lists, traversal is sequential which means slow access time.

ii. Storage is another bottle neck when using linked lists in sparse matrix implementation. Each node item in a linked list contains other information that needs to be stored alongside the value such as the pointer to the next or previous item.

Consider the Palindrom class discussed in class. Which of the following is true? It uses one stack and one queue to find out if a given string is palindrom It uses a glass queue to find out if a string is a palindrome It uses a recursive method to find out if a string is a palindrome It uses 2 stacks to find out of a string is a palindrome

Answers

Answer:

It uses a recursive method to find out if a string is a palindrome

Explanation:

Palindrome is a word or a sequence which is read same as backward as forwards. There are various method to find a palindrome. Palindrome can be determined recursively by identifying the first and last letters of the word. These first and last letter should be same. If they are same then the word or sequence is palindrome.

Write a program that create Employee class with fields id,name and sal and create Employee object and store data and display that data.

Answers

Answer:

Here is the C++ program for Employee class with fields id,name and sal.

#include <iostream>  // to use input output functions

#include <string>  //to manipulate and use strings

using namespace std;   // to access objects like cin cout

class Employee {  //class Employee

private:  

/* the following data members are declared as private which means they can only be accessed by the functions within Employee class */

  string name;  //name field

  int id; //id field

  double sal;   //salary field

public:    

  Employee();  // constructor that initializes an object when it is created

/* setName, setID and setSalary are the mutators which are the methods used to change data members. This means they set the values of a private fields i.e. name, id and sal */

  void setName(string n)  //mutator for name field

     { name = n; }        

  void setId(int i)  //mutator for id field

     { id = i; }        

  void setSalary(double d)  //mutator for sal field

     { sal = d; }  

/* getName, getID and getSalary are the accessors which are the methods used to read data members. This means they get or access the values of a private fields i.e. name, id and sal */

  string getName()  //accessor for name field

     { return name; }        

  int getId()  //accessor for id field

     { return id; }        

  double getSalary()  //accessor for sal field

     { return sal; }  };  

Employee::Employee() {  //default constructor where the fields are initialized

  name = "";  // name field initialized

  id = 0;  // id field initialized to 0

  sal = 0;   }   // sal field initialized to 0

void display(Employee);  

// prototype of the method display() to display the data of Employee

int main() {  //start of the main() function body

  Employee emp;  //creates an object emp of Employee class

/*set the name field to Abc Xyz which means set the value of Employee class name field to Abc Xyz  through setName() method and object emp */

  emp.setName("Abc Xyz");  

/*set the id field to 1234 which means set the value of Employee class id field to 1234  through setId() method and object emp */

  emp.setId(1234);

/*set the sal field to 1000 which means set the value of Employee class sal field to 1000  through setSalary() method and object emp */

  emp.setSalary(1000);    

  display(emp);  }   //calls display() method to display the Employee data

void display(Employee e) {  // this method displays the data in the Employee //class object passed as a parameter.

/*displays the name of the Employee . This name is read or accessed through accessor method getName() and object e of Employee class */

  cout << "Name: " << e.getName() << endl;  

/*displays the id of the Employee . This id is read or accessed by accessor method getId() and object e */

  cout << "ID: " << e.getId() << endl;

/*displays the salary of the Employee . This sal field is read or accessed by accessor method getSalary() and object e */

  cout << "Salary: " << e.getSalary() << endl;  }

Explanation:

The program is well explained in the comments mentioned with each statement of the program.

The program has a class Employee which has private data members id, name and sal, a simple default constructor Employee(), mutatator methods setName, setId and setSalary to set the fields, acccessor method getName, getId and getSalary to get the fields values.

A function display( ) is used to display the Employee data i.e. name id and salary of Employee.

main() has an object emp of Employee class in order to use data fields and access functions defined in Employee class.

The output of the program is:

Name: Abc Xyz                                                                                                      

ID: 1234                                                                                                                  

Salary: 1000

The program and its output are attached.

Other Questions
$6,000 dollars is invested in two different accounts earning 3% and 5% interest. At the end of one year, the two accounts earned $220 in interest. How much money was invested at 3%? $2,000 $3,000 $4,000 Question 18 (5 points)Identify the independent and dependent variables in the following situation: Thetemperature of the water decreases as a diver descends to the bottom of a lake.The independent variable is the temperature of the water, and the dependentvariable is the depth below the surface of the lake.The independent variable is the depth below the surface of the lake, and thedependent variable is the temperature of the water.The independent variable is the speed at which the diver descends, and thedependent variable is the temperature of the water.The independent variable is the type of boat, and the dependent variable is thetemperature of the water. A drug problem can quickly consume A)a small portions of a person income B)the bulk of a person income C)a person excess income marcus receives an inheritance of $13,000. he decides to invest this money in a 10-year certificate of deposit (CD) that pays 3.0% interest compounded monthly. how much money will marcus receive when he redeems the CD at the end of 10 years? Which lifestyle is most likely to lead to infertility in a male ? A man who works as a mechanic A man who works as a computer programmer and sits at desk magority of the day A semi professional athlete A man who works for a companys that applies pesticides to lawns the explorer __accurately mapped the coasts of europe and north ameerica write the equation of a line that is perpendicular to x=3 and that passes through the point (0 -4) will mark brainliest asap!!! Fogerty Company makes two products, titanium Hubs and Sprockets. Data regarding the two products follow: Direct Labor-Hours per Unit Annual Production Hubs 0.60 15,000 units Sprockets 0.20 50,000 units Additional information about the company follows: a. Hubs require $39 in direct materials per unit, and Sprockets require $18. b. The direct labor wage rate is $12 per hour. c. Hubs are more complex to manufacture than Sprockets and they require special equipment. d. The ABC system has the following activity cost pools: Estimated Activity Activity Cost Pool (Activity Measure) Overhead Cost Hubs Sprockets Total Machine setups (number of setups) $ 28,980 140 112 252 Special processing (machine-hours) $ 92,000 4,600 0 4,600 General factory (organization-sustaining) $ 89,000 NA NA NA Required: 1. Compute the activity rate for each activity cost pool. 2. Determine the unit product cost of each product according to the ABC system. (Round intermediate calculations and final answers to 2 decimal places.) Based on the information in the graph, what conclusions can be drawn about the rate of skin cancer in mencompared to that in women?than in women Christopher collected data from a random sample of 800 voters in his state asking whether or not they would vote to reelect the current governor. Based on the results, he reports that 54% of the voters in his city would vote to reelect the current governor. Why is this statistic misleading? help quick plz must get this correct I will make u a brainllest differences between identical and fraternal twins What is the slope-intercept form of the equation of the line that passes through the points (3,2) and (1,5)?y=34x92y=34x+72y=34x74y=34x+174 . The client was hoping for a likability score of at least 5.2. Use your sample mean and standard deviation identified in the answer to question 1 to complete the following table for the margins of error and confidence intervals at different confidence levels. Note: No further calculations are needed for the sample mean. (6 points: 2 points for each completed row) Confidence Level | Margin of error | Center interval | upper interval | Lower interval 68 95 99.7 Read and choose the correct option to complete the series of words. Verb Tenses Mr. MacInnes usually (go) ________to church on Sundays. He never (work) _________ at his job on Sundays. Which graph represents this system? y = one-half x + 3. y = three-halves x minus 1 On a coordinate plane, a line goes through (0, 3) and (4, 5) and another goes through (0, negative 1) and (2, 2). On a coordinate plane, a line goes through (0, 3) and (1, negative 3) and another goes through (0, negative 1) and (3, 1). On a coordinate plane, a line goes through (negative 1, negative 2) and (1, 4) and another goes through (0, 1.5) and (1.5, 0). On a coordinate plane, a line goes through (negative 3, negative 3) and (0, 3) and another goes through (0, negative 1) and (3, 1). The mad scientist need one third of the eyeball how many eyeball is that Escoja la frase que necesita el infinitivo salir. A) Al ___ de la escuela, voy al gimnasio a ayudar a los nios. B) Despus ___ para Mxico con mis padres. C) Cuando ___ a las tres, vendr a verte. A pendulum at position A is released and swings through position B to position Con the other side.B1. Describe the total mechanical energy at each of the following positions. (3)A.B.C