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
labwork [276]
2 years ago
5

Assume that you want two C# or C++ programs to share some data. You can write the first program so that it writes it's output to

a file, and then write the second program so that it reads the data from this file. However this process can be difficult and time consuming, especially if you don't know how to program in C# or C++. What feature of the UNIX/Linux shell can you use to simplify the process of sharing data between programs?
Computers and Technology
1 answer:
Dominik [7]2 years ago
7 0

Certain ways exist to simplify the process of data sharing between programs.some of these ways are;

A) When there are two programs that are not running at the same time,then the pipes or the sockets won't be able to work as their buffers would not be able to hold large files because they are small.

Looking at this scenerio,shared memory can be used.

The Sysv IPC shared memory API, POSIX shared the memory API or rather files on a tmpfs system of files can actually be used for shared memory operations.

B) Another possible solution can be named file. Instead of using an unnamed and shell pipeline,a name pipeline them uses the file system.

However,it can be treated with the use of mkfifo() or mknod() commands and then two separate programs or also processes can as well access the pipe by making use of the name of the pipe.

But one process(program) can actually open the pipe but as a reader for reading purposes and the other for writing purposes as a writer.

You might be interested in
Which type of navigation involves multiple frames that are linked to a number of other frames?
sesenic [268]

Answer:

1. b)

2. c)

3. c)

4. a)

5. b)

Explanation:

1. and 5. Linear kind of navigation is a system with a sequential manner web pages that are perfect for some sorts of sites that are having information that has to be viewed as a book (5) and when we are talking about that view we are considering one page after another page like we are reading a book. It is also the simplest navigation. This is the explanation for question 1 and question 5.

2. The most well-designed navigation system is an intuitive one because in this design of the website we have website traffic that is easy because it flows from one web page to another web page. It is showing us where to go to find and look for something and even where to go if there is no concrete options for what are we looking for.

3. A Sitemap is referring to the organized hierarchy of links and it is the protocol that is allowing us to search through many links. A Sitemap is having a listing of the URLs for some site and that is why this is the correct answer.

4. In using liner reciprocal navigation the interface should include how frames are left and how many of them are there. The more the frames, the more times the user will spend on them and the site.

8 0
2 years ago
PLEASE PLEASE HELP. IF THERE A MULTUPLE ANSWERS I WILL BRAINLIEST TO THE BEST ONE!!!!
sladkih [1.3K]

Answer: multiple answers but here is one

Explanation: The Advantages

One of the biggest advantages of ebooks is the fact that they require no trees to create them. This is obviously an eco-friendly option that both reduces cost and lowers environmental impact.

Information can be obtained without leaving your desk! Need to do some last-minute research on a particular topic? Simply find a great ebook store, search for your keywords or phrases, purchase the book and you’re set!

Unlike paper books and materials, digital books only require one device to carry around with you. This means you can carry a library of various book genres for every mood.

eBooks can lower the cost of enjoying your favorite titles. With no shipping and handling costs, eBooks typically have prices that are 50-60% lower than their print counterparts.

eBooks are more flexible than paper books. For those who have trouble reading the typical book-sized font, ebook readers can enlarge the font size to make reading more pleasurable and easier on the eyes.

eBooks can contain multi-media elements not available with traditional books. Audio and video can be embedded to make reading a fully immersive experience.

Ever wonder where that great passage in your favorite book went to? With ebooks you can mark passages, save pages and search text before, during or after you read.

With all these advantages it is difficult to imagine what the disadvantages are, but there are some that have many folks concerned. If you're already sold, we've listed the cheapest prices for the Amazon Kindle below.

The Disadvantages

Piracy is the number one concern for both publishers and authors. While traditional books can be copied with machines, the time and cost of doing so typically keeps this type of piracy at bay. With ebooks, however, 'sharing' books that have not been purchased with others is as easy as posting a file online or, in some cases, copying and pasting the text from one document to another.

Many people still prefer being able to hold a traditional book in their hands. For those of us who enjoy reading a book in bed before signing off for the night, a cold hard digital device just won’t be the same.

While one advantage of ebook devices is their ability to enlarge fonts for easier reading, the fact is you are still reading off an LCD screen. Some readers have matte e-ink screens, but others give off a glare that can not only make reading inconvenient if the lighting isn’t just right, but may actually cause eye strain and make it more difficult to focus while reading.

With the wide variety of formats and ereader devices on the market, choosing which device is the right one for all situations can be nearly impossible. Though compatible formats have been introduced that should allow most readers to view purchases, many of these still lack proper formatting. Without proper page layouts and spacing reading becomes more of a tedious chore than an enjoyable pastime. With traditional books one simply buys and reads!

When is the last time you had to plug your paper book into the wall outlet? How disappointing would it be to find yourself right in the middle of a steamy romance scene while traveling only to have the batteries in your reading device die, with no way to charge them?

Currently, ebooks have an unreliable life span. Paper books last for decades provided they are well cared for. And besides, what good is a bookshelf if you cannot enjoy the look and smell of all your time-worn books, lovingly thumbed, crimped and read cover to cover, over and over again?

7 0
2 years ago
One lap around a standard high-school running track is exactly 0.25 miles. Write a program that takes a number of miles as input
salantis [7]

Answer:

import java.util.Scanner;

public class Miles {

public static void main(String[] args) {

   //initialization

       double Number_Miles;

       //print the message

       System.out.print("Enter the number of miles: ");

       Scanner scn1 = new Scanner(System.in);

       

       Number_Miles = scn1.nextDouble();  //read the input from user

       //calculate the laps

       double yourValue = Number_Miles/0.25;

       //display the output on the screen

       System.out.printf("%.2f", yourValue);

     

}

}  

Explanation:

First import the library Scanner than create the class and define the main function. In the main function, declare the variables.

print the message on the screen and then store the value enter by the user into the variable.

Scanner is a class that is used for reading the output. So, we make the object of the class Scanner and then object call the function nextDouble() which reads the input and store in the variable.

After that, calculate the number of laps by dividing the number of miles with the given one lap running track value (0.25 miles).

Number\,of\,laps = \frac{Number\,of\,miles}{0.25}

the output is stored in the variable.

After that, print the value on the screen with 2 digits after the decimal point.

we can use "%.2f" in the printing function in java.

like System.out.printf("%.2f", output);

5 0
2 years ago
Read 2 more answers
Which of the following is an example of synchronous communication?
kirza4 [7]

The answer is D) on Oddessey Ware

4 0
3 years ago
how can people access to a range of online services affect their ability to operate safely in the digital world
Andru [333]
Have parental controls on certain sites
3 0
3 years ago
Other questions:
  • When planning your educational and career path, it makes sense to consider where you want to work and what type of work you want
    14·1 answer
  • According to the Bureau of Labor Statistics, how
    14·1 answer
  • Random access memory is the portion of a computer's primary storage that does not lose its contents when one switches off the po
    6·2 answers
  • Andy wants to install a new Internet connection. He wants to take the fastest he can get. What are the maximum speeds for the fo
    9·1 answer
  • In an array-based implementation of a dictionary, if you represent the entries as an array of objects that encapsulate each sear
    12·1 answer
  • write a loop that reads positive integers from stands input and that terinated when it reads an interger that is not positive af
    10·1 answer
  • A job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order t
    14·1 answer
  • Which of these is a negative effect of computer technology's role in creating
    9·1 answer
  • (Comparable interface) Write Rectangle class that implements the Comparable interface. Override the equals method so that two Re
    12·1 answer
  • Can someone follow my tt its c1ndy.dont.miss
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!