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
Jet001 [13]
2 years ago
7

Create a text file content.txt and copy-paste following text (taken from Wikipedia) into it: A single-tasking system can only ru

n one program at a time, while a multi-tasking operating system allows more than one program to be running in concurrency. This is achieved by time-sharing, dividing the available processor time between multiple processes that are each interrupted repeatedly in time slices by a taskscheduling subsystem of the operating system. Now, write a C program that opens content.txt file for reading and calls fork() function. The child process in the program will print first 150 characters from the file and the remaining characters will be printed by the parent. However, at the
Computers and Technology
1 answer:
elixir [45]2 years ago
8 0

Answer:

s0 you should figure that out because I don't know how to

Explanation:

good luck

You might be interested in
What are the programs in a computer​
stealth61 [152]

Answer:

Computer skills examples

Operating systems  

Office suites  

Presentation software

Spreadsheets  

Accounting software

Explanation:

A program is a set of ordered operations for a computer to do in computing. The program in the modern computer described by John von Neumann in 1945 has a one-at-a-time series of instructions that the computer follows. Typically, the application is saved in a computer-accessible storage location.

4 0
2 years ago
Am i in elementary yes no
IgorLugansk [536]

Answer:

no

Explanation:

7 0
2 years ago
Java Eclipse homework. I need help coding this|
mezya [45]

import java.util.Scanner;

import java.util.Arrays;

public class MyFamily {

   public static void main(String[] args) {

       float avg = 0;

       int smallest = 0;

       int largest = 0;

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter the name of a friend or family member.");

       String name1 = scan.nextLine();

       System.out.println("Enter "+name1+"'s age");

       int name1Age = scan.nextInt();

       System.out.println("Enter the name of a friend or family member.");

       String name2 = scan.next();

       System.out.println("Enter "+name2+"'s age");

       int name2Age = scan.nextInt();

       System.out.println("Enter the name of a friend or family member.");

       String name3 = scan.next();

       System.out.println("Enter "+name3+"'s age");

       int name3Age = scan.nextInt();

       int[] ages = {name1Age, name2Age, name3Age};

       Arrays.sort(ages);

       System.out.println("The oldest is " + ages[2] + " years old");

       System.out.println("The youngest is " + ages[0] + " years old");

       System.out.println("The average is (("+name1Age + "+" + name2Age + "+" + name3Age+") / 3) = " + ((name1Age + name2Age + name3Age) / 3) + " years old");

       System.out.println(name1+", "+name1Age + " years old");

       System.out.println(name2+", "+name2Age + " years old");

       System.out.println(name3+", "+name3Age + " years old");

       

   }

   

}

I hope this helps!

5 0
3 years ago
What is the full form of BD in computer​
grin007 [14]

Answer:

the full form of BD binary digits

7 0
2 years ago
Read 2 more answers
The contents of a four-bit register are initially 1011. The register is shifted six times to the right, with the serial input be
balu736 [363]

Answer:

First shift - 1101

Second shift - 0110

Third shift - 1011

Fourth shift - 1101

Fifth shift - 0110

Sixth shift - 1011

Explanation:

Each time you shift a register to the right, you do 3 things:  

  • The rightmost digit drops off
  • You move the next three digits over one position to the right
  • You fill in the leftmost position with one of the numbers from your serial input.

Contents are initially 1011.  The 1 on the right disappears.  The leftmost 3 digits (101) end up in the last 3 positions of the register.  The first position of the register takes a number from the serial input, which is 1 in this case.  So you end up with 1101.

Do this a second time.  The rightmost 1 is gone, the 110 end up as the last 3 positions of the register, and you end up with 0 in the leftmost position.  This one is 0110.

The remaining 4 follow the same pattern.

4 1
3 years ago
Other questions:
  • Esther has acquired an associate's degree in information technology and certifications in PageMaker and Illustrator. Which caree
    8·2 answers
  • In order to use an object in a program, its class must be defined.
    9·1 answer
  • List of steps to apply bold and italic formatting to a word​
    9·2 answers
  • A company has critical systems that are hosted on an end-of-life OS. To maintain operations and mitigate potential vulnerabiliti
    14·1 answer
  • 1. How many questions are on the Consensus Assessment Initiative document?
    10·1 answer
  • What is the result of expression 15 > 10 > 5 in C? What is the result of the same expression in Java?
    14·1 answer
  • The NVCC college professor receives frequent emails disguised as official business emails. They may be requests to reset a passw
    10·2 answers
  • In this exercise, you are asking the user to set a alpha numeric password for any website. Put some conditions.
    8·1 answer
  • Which language should you use to add functionality to web pages.
    10·1 answer
  • What is wrong with the following code?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!