1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
o-na [289]
3 years ago
10

This problem has been solved!

Engineering
1 answer:
lisov135 [29]3 years ago
5 0

Answer: a) 135642 b) 146253

Explanation:

A)

1- the bankers algorithm tests for safety by simulating the allocation for predetermined maximum possible amounts of all resources, as stated this has the greatest degree of concurrency.

3- reserving all resources in advance helps would happen most likely if the algorithm has been used.

5- Resource ordering comes first before detection of any deadlock

6- Thread action would be rolled back much easily of Resource ordering precedes.

4- restart thread and release all resources if thread needs to wait, this should surely happen before killing the thread

2- only option practicable after thread has been killed.

Bii) ; No. Even if deadlock happens rapidly, the safest sequence have been decided already.

You might be interested in
What amount of force is being exerted in the horizontal direction?
ZanzabumX [31]

Explanation:

Use trigonometry.  The horizontal force is:

Fₓ = F cos θ

Fₓ = 20 N cos 60°

Fₓ = 10 N

7 0
4 years ago
Select the correct answer.
andrezito [222]

Answer:

it is A. balance

Explanation:

6 0
3 years ago
Anne works for NASA. She was responsible for developing an aerodynamic design of a space shuttle. What type of engineer is she?
lina2011 [118]

Answer:

She is a aerospace engineer.

Explanation:

This is because she works is the aerospace industry, so she must be an aerospace engineer.

7 0
3 years ago
Create a package named one_dimensional_array and write a class that completes the following "OneDimensionalArrays" class. You wi
yan [13]

Answer:

The filled in codes are

1) private static int[] arr;

2)  int arr[] = new int[size_of_array];

        int increment = 100;

        for (int i = 0; i < size_of_array; i++) {

       arr[i] = increment * i;

       }

      return arr;

3) for (int i = 0; i < myArray.length; i++) {

      System.out.println(myArray[i]);

4)  OneDimensionalArrays result = new OneDimensionalArrays();

    result.createIntegers(num);

    result.printArray(arr);

Explanation:

Create a package named one_dimensional_array and write a class that completes the following "OneDimensionalArrays" class. You will complete the class by filling in code wherever you see the comment:

//******* FILL IN CODE *********

import java.util.Scanner;

public class OneDimensionalArrays {

   

   int[] createIntegers(int size_of_array)

   {

      //*******  FILL IN CODE *********

      // Your code will create an array of ints as large as specified in size_of_array

      // Fill the array in with the values: 0, 100, 200, 300, ....

      // Return the array that you just created

   }

   void printArray(int[] myArray)

   {

      //*******  FILL IN CODE *********

       // Print out your array with one number per line.  Get the size of the

       // array from the "myArray" parameter (no hard coding the size)

   }

   public static void main(String[] args) {

       Scanner keyboard = new Scanner(System.in);

       

       System.out.println("Enter size of array to create: ");

       int num = keyboard.nextInt();

       //*******  FILL IN CODE *********

       // Construct an instance of the OneDimensionalArrays class

       // Using this object instance, call createIntegers to create

       // an array of integers.  Don't forget to save the results

       // Then call the printArray method to print out the contents

       // of your array.

       }

}

Completed Code when filled in looks this way below:

import java.util.Scanner;

public class OneDimensionalArrays {

  private static int[] arr;

  int[] createIntegers(int size_of_array) {

       int arr[] = new int[size_of_array];

       int increment = 100;

       for (int i = 0; i < size_of_array; i++) {

             arr[i] = increment * i;    

       }

       return arr;

   }

   void printArray(int[] myArray) {

       for (int i = 0; i < myArray.length; i++) {

           System.out.println(myArray[i]);          

       }

   }

   public static void main(String[] args) {

       Scanner keyboard = new Scanner(System.in);

       System.out.println("Enter size of array to create: ");

       int num = keyboard.nextInt();

       OneDimensionalArrays result = new OneDimensionalArrays();

       result.createIntegers(num);

       result.printArray(arr);

   }

}

7 0
3 years ago
Select the correct answer.
andre [41]

Answer:

A. energy transformations

Explanation:

8 0
2 years ago
Other questions:
  • (40 points) Program the following sorting algorithms: InsertionSort, MergeSort, and QuickSort. There are 9 test les uploaded for
    10·1 answer
  • Consider a 2-shell-passes and 8-tube-passes shell-and-tube heat exchanger. What is the primary reason for using many tube passes
    6·1 answer
  • If 20 kg of iron, initially at 12 °C, is added to 30 kg of water, initially at 90 °C, what would be the final temperature of the
    6·1 answer
  • Guys, can you rate this toolbox, please. It is my DT project, made for car trips, what do you think of the idea/design/usability
    12·1 answer
  • What is clearance? What is backlash? What is interference? Explain briefly.
    6·1 answer
  • Given that the skin depth of graphite at 100 (MHz) is 0.16 (mm), determine (a) the conductivity of graphite, and (b) the distanc
    12·1 answer
  • Blood pressure is conventionally measured in the dimensions of millimeters in a column of mercury, and the readings are expresse
    5·1 answer
  • Provide two programming examples in which multithreading provides better performance than a single-threaded solution. Provide on
    11·1 answer
  • Will give brainly
    13·2 answers
  • During a storm, gage station A was inoperative but the surrounding stations, B, C, and D, recorded rainfall of 5.2, 4.5, and 6.1
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!