Questions
[1] Can you load a Linux kernel module more than once? Explain briefly. [1] For the...

  1. [1] Can you load a Linux kernel module more than once? Explain briefly.

  2. [1] For the modules we have created in class, does the code run continuously, or does it run in response to certain events? Explain, and be specific.

  3. [1] When the kernel does a printk(), does it write directly to /var/log/kern.log? Explain.

  4. [1] The makefile for a Linux kernel module is generally very simple; however, building a module seems to be a bit complicated, generating lots of files. Where is the module build process getting instructions for doing all this work?

  5. [1] If you change line 22 in the ones module to define CLASS_NAME to be "OSclass", will this change the observable behavior of the module? Explain briefly.

  6. [1] When doing the work for a system call, how does the kernel keep track of which process made that system call (so it does the work on behalf of that process)?

  7. [2] How does the format of data returned by getdents(2) differ from that returned by readdir(3) (at a high level)? What is a key motivation for this difference?

  8. [2] How can you change the magic_prefix for the rootkit without changing the code of the module? How is this information passed to the kernel at runtime?

  9. [2] When the kernel allocates memory for its own use, does it refer to that memory using virtual or physical addresses? How does the remember module show this?

  10. [2] What is a significant reason why the kernel uses functions such as copy_to_user() when accessing process memory? Why not just access this memory directly?

  11. [2] Change the ones module so that it will allow writes, and the first character of whatever is written will become the character that is repeatedly output when reading (instead of '1'). What changes do you need to make?

  12. [4] How could you make a "spooky rootkit" (based on 3000rootkit) that would randomly (with a .01 probability on each call to getdents) insert a file "BOO!" with an inode of 9999 into the stream of returned files? Note that you can get random bytes using the get_random_bytes() function in the kernel.

In: Computer Science

Long Answer Question: -Use at least two Organizational Behaviour Models to explain the characteristics of a...

Long Answer Question:

-Use at least two Organizational Behaviour Models to explain the characteristics of a successful leader.

In: Operations Management

1. Either (a) If determinism is true, is a person bound to do what they actually...

1. Either (a) If determinism is true, is a person bound to do what they actually do ? OR Is there any role for higher order desire in an account of freedom?

Please. solution should be well explain with good example to justify the question

In: Psychology

In this programming assignment, you are asked to write a multi-threaded program using JAVA to compute...

  1. In this programming assignment, you are asked to write a multi-threaded program using JAVA to compute the sum of an arithmetic series from 1 to 200 using pthreads.   The main thread is responsible for creating two child threads

  1. The first child thread should compute the partial sum of the series from 1 to 100 and the second computes the partial sum of another series from 101 to 200.

  1. The main thread should accumulate the partial sums computed by the child threads to obtain the final sum and then print out the results, including the partial sums computed by each child thread and the final sum accumulated by the main thread.

In: Computer Science

talk about your experience with additive versus subtractive color mixing and how they are different

talk about your experience with additive versus subtractive color mixing and how they are different

In: Psychology

Becton Labs, Inc., produces various chemical compounds for industrial use. One compound, called Fludex, is prepared...

Becton Labs, Inc., produces various chemical compounds for industrial use. One compound, called Fludex, is prepared using an elaborate distilling process. The company has developed standard costs for one unit of Fludex, as follows: Standard Quantity or Hours Standard Price or Rate Standard Cost Direct materials 2.50 ounces $ 19.00 per ounce $ 47.50 Direct labor 0.70 hours $ 15.00 per hour 10.50 Variable manufacturing overhead 0.70 hours $ 4.00 per hour 2.80 Total standard cost per unit $ 60.80 During November, the following activity was recorded related to the production of Fludex: Materials purchased, 12,500 ounces at a cost of $223,125. There was no beginning inventory of materials; however, at the end of the month, 3,250 ounces of material remained in ending inventory. The company employs 21 lab technicians to work on the production of Fludex. During November, they each worked an average of 150 hours at an average pay rate of $12.50 per hour. Variable manufacturing overhead is assigned to Fludex on the basis of direct labor-hours. Variable manufacturing overhead costs during November totaled $5,100. During November, the company produced 3,500 units of Fludex. Required: 1. For direct materials: a. Compute the price and quantity variances. b. The materials were purchased from a new supplier who is anxious to enter into a long-term purchase contract. Would you recommend that the company sign the contract? 2. For direct labor: a. Compute the rate and efficiency variances. b. In the past, the 21 technicians employed in the production of Fludex consisted of 4 senior technicians and 17 assistants. During November, the company experimented with fewer senior technicians and more assistants in order to reduce labor costs. Would you recommend that the new labor mix be continued? 3. Compute the variable overhead rate and efficiency variances.

In: Accounting

4. The enzyme alcohol dehydrogenase catalyzes the oxidation of ethyl alcohol by NAD+ to give acetaldehyde...

4. The enzyme alcohol dehydrogenase catalyzes the oxidation of ethyl alcohol by NAD+ to give acetaldehyde plus NADH and a proton:

CH3CH2OH + NAD+                  CH3CHO + NADH + H+

The rate of this reaction can be measured by following the change in pH. The reaction is run in 1 mL 10 mM TRIS buffer at pH 8.6. If the pH of the reaction solution falls to 8.4 after ten minutes, what is the rate of alcohol oxidation, expressed as nanomoles of ethanol oxidized per mL per sec of reaction mixture?

In: Chemistry

For the following data values below, construct a 90% confidence interval if the sample mean is...

For the following data values below, construct a 90% confidence interval if the sample mean is known to be 0.719 and the population standard deviation is 0.366. (Round to the nearest thousandth) (Type your answer in using parentheses!Use a comma when inputing your answers! Do not type any unnecessary spaces! List your answers in ascending order!) for example: (0.45,0.78)

0.56, 0.75, 0.10, 0.95, 1.25, 0.54, 0.88

In: Math

1. Explain how and why study of the Humanities is relevant to contemporary human experience. 2....

1. Explain how and why study of the Humanities is relevant to contemporary human experience.

2. Analyze how personal experience affects one's interpretation of humanities texts.

In: Psychology

Write a program that calculates mean and standard deviation for four user entered values. The most...

Write a program that calculates mean and standard deviation for four user entered values. The most common measures of a sample are the mean and the standard deviation. the mean is the sum of the values divided by the number of elements in the data set. The dispersion - or spread in the values - is measured by the standard deviation The equation for the mean is x¯ = x1 + x2 + · · · + xn The equation for the standard deviation is sx = √ (x1 − x¯) 2 + (x2 − x¯) 2 + · · · + (xn − x¯) 2 n − 1 Your program will have the user enter four values (all doubles), You might call them x1, x2,x3,and x4. The program will then pass these four values to a function called mean that will calculate and return the mean of the four values. The mean and the four values will then be passed to a second function called stdev which will calculate and return the standard deviation of the four values. You program should be using functions. There will be a function printHeader that prints the splash screen, a function mean that calculates the mean, a function stdev that calculates the standard deviation, and a function printResults that prints the four values, their mean, and their standard deviation Your program must also include comments with your name, the date, and a short description of the project. It must also print this information as a splash screen at the beginning of the program run. It should print like:

X: 4.00, 7.00, 1.00, 10.00

Mean: 5.50

Std Dev: 3.87

This needs to be done in C++. Below is the format:

//
//   Name
// 1 October 2020
//   Program to calculate the mean and standard deviation
//

//   Pound includes - will need the string and cmath libraries
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>

using namespace std;

//   Function Prototypes - Need to add three more. One for mean, one for
// standard deviation, and one for the printResults
void printHeader(string, string);
int main(void) {

   // Splash Screen
   printHeader("1 October 2020", "Calculating Statistics");
  
   //   Declare and Initialize all of the variables
   //   Will need doubles for the four data points, as well as a double
// for the mean and one for the standard deviation
  
  
   //   Prompt for entering data - you must enter four values
  
  
   // Pass the four data variables to a function that returns the mean
  
  
  
   //   Pass the four data variables and the mean to a function that returns
// the standard deviation
  
  
  
  
   //   Print the results
   //   Include the original values and the mean and the standard
// DO NOT PRINT IT HERE - pass the variables to a printResults function
  
  
  
  
  
   return 0;
}

//   Function Definitions
void printHeader(string dueDate, string description) {
//   PRINTHEADER void printHeader(string, string) prints the splash screen
//   using the two strings that are passed to the function from the driver.
//  
//   Name:   
//   Date:
//
  
   //   Print the splash screen
   cout << endl;
   cout << "Your Name Here" << endl;
   cout << "CMPSC 101" << endl;
   cout << dueDate << endl;
   cout << description << endl;
   cout << endl;


   return;
}

In: Computer Science

5. Logan’s Enterprises, a manufacturer, reported the following data for May. Beginning balance, Raw Materials Inventory...

5. Logan’s Enterprises, a manufacturer, reported the following data for May.

Beginning balance, Raw Materials Inventory $45,000
Beginning Balance, Work in Process Inventory $52,000
Beginning Balance, Finished Goods $62,000
Ending Balance, Raw Materials Inventory $47,000
Ending Balance, Work in Process Inventory $32,000
Purchase of Raw Materials $92,000
Direct Labor $48,000
Manufacturing Overhead $42,000
Cost of Goods Sold $220,000

Required:

a. How much direct materials were used in production?

b. What were the current manufacturing costs for the month of May?

c. What was the ending balance in the Finished Goods Inventory account?

6. Bluegill, Inc. produces spincast reels. The company’s controller has provided you with the following information.

Beginning balance, Direct Materials Inventory $75,000

Ending balance, Direct Materials Inventory $69,000

Beginning balance, Work in Process Inventory $122,000

Ending balance, Work in Process Inventory $125,000

Direct Labor $757,000

Manufacturing Overhead $347,000

Direct materials purchased $847,000

Required:

Using the above cost information, prepare a cost of goods manufactured schedule.

7. The following data has been taken from the accounting records of Curtis Manufacturing Company for the current year:

Sales $600,000

Purchases of raw materials $350,000

Direct labor cost during period $120,000

Manufacturing overhead incurred during period $60,000

Raw Materials Inventory, beginning $20,000

Raw materials Inventory, ending $25,000

Work in Process Inventory, beginning $47,000

Work in Process Inventory, ending $32,000

Finished Goods Inventory, beginning $75,000

Finished Goods Inventory, ending $82,000

Required:

a. Compute the amount of raw materials moved into production during the period.

b. Compute the amount transferred to finished goods during the period.

c. Compute the amount of goods sold during the period.

8. Classify the following costs incurred by Roper Dress Manufacturing Company by both behavior and function by placing an “X” in the appropriate columns.

Variable Cost Fixed Cost Product Cost Period Cost
Cost of Fabric Used in Dresses
Cost of Lubrication for Sewing Machines
Cost of Commissions Paid to Sales Staff
Salary of Insurance on Office Building
Depreciation on Sewing Machines

In: Accounting

How is it possible for the network layer (L3) to operate in connectionless, best effort manner?...

How is it possible for the network layer (L3) to operate in connectionless, best effort manner? Hint: think upper layer

In: Computer Science

A random sample of 40 adults with no children under the age of 18 years results...

A random sample of 40 adults with no children under the age of 18 years results in a mean daily leisure time of 5.83 ​hours, with a standard deviation of 2.49 hours. A random sample of 40 adults with children under the age of 18 results in a mean daily leisure time of 4.47 ​hours, with a standard deviation of 1.89 hours. Construct and interpret a 95​% confidence interval for the mean difference in leisure time between adults with no children and adults with children (mu 1 - mu 2)

Let mu 1μ1 represent the mean leisure hours of adults with no children under the age of 18 and mu 2μ2

represent the mean leisure hours of adults with children under the age of 18.

The 95​% confidence interval for left parenthesis mu 1 minus mu 2 right parenthesisμ1−μ2 is the range from   

hours to hours.

​(Round to two decimal places as​ needed.)

What is the interpretation of this confidence​ interval?

A.There is 95​% confidence that the difference of the means is in the interval. Conclude that there is insufficient evidence of ainsufficient evidence of asignificant difference in the number of leisure hours.

B.There is a 95​%probability that the difference of the means is in the interval. Conclude that there is a significant difference in the number of leisure hours.

C.There is 95​% confidence that the difference of the means is in the interval. Conclude that there is a significant difference in the number of leisure hours.

D. There is an 95​%probability that the difference of the means is in the interval. Conclude that there is insufficient evidence of a significant difference in the number of leisure hours.

In: Math

What command lists the MAC address on a computer? how do you find it on a...

What command lists the MAC address on a computer? how do you find it on a mobile devices?

In: Computer Science

Implement a function that returns all the items in a binary search tree in order inside...

Implement a function that returns all the items in a binary search tree in order inside a std::vector. Use the following class and function definition:

class BTNode {
public:
   int item;
   BTNode *left;
   BTNode *right;
   BTNode(int i, BTNode *l=nullptr, BTNode *r=nullptr):item(i),left(l),right(r){}
};

BTNode *root = nullptr;

std::vector<int> inorder_traversal(BTNode *node) {
     // implement
}

If the BST has no values, return a vector with no items in it.

#include <iostream>
#include <vector>

class BTNode {
public:
int item;
BTNode *left;
BTNode *right;
BTNode(int i, BTNode *l=nullptr, BTNode *r=nullptr):item(i),left(l),right(r){}
};

BTNode *root = nullptr;

std::vector<int> inorder_traversal(BTNode *node) {
// implement
}

int main()
{
root = new BTNode(10, new BTNode(0), new BTNode(100));

std::vector<int> res = inorder_traversal(root);

for(auto &i : res) {
std::cout << i << ", ";
}
std::cout << std::endl;


return 0;
}

In: Computer Science