Question

Q5. If one thread opens a file with read privileges then a) other threads in the another process can also read from that file
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q5. If one thread opens a file with read privileges then

Ans) (B)

Other threads in the same process can also read from that file

Explanation:

The thread is changed with reflected to other threads using fork() system call.

Add a comment
Know the answer?
Add Answer to:
Q5. If one thread opens a file with read privileges then a) other threads in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You must start a thread before you can read and reply to other threads Discussion 1E...

    You must start a thread before you can read and reply to other threads Discussion 1E Must post first. The gravitational force exerted by Earth on a unit mass at a distance rfrom the center of the planet is given by: GMr GM .ireR where Mis the mass of Earth, R is its radius, and G is the gravitational constant. ls Fa continuous function of ? Explain why or why not. You must start a thread before you can read...

  • Select all that are true regarding threads. A) a thread is a sequence of instructions executed...

    Select all that are true regarding threads. A) a thread is a sequence of instructions executed in order B ) allow multitasking when more than one thread is executed in parallel C) two ways of implementing a thread is by extending java.lang.Thread or implementing java.lang.Runnable D) multithreading is easier to implement than single threaded applications

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

  • JAVA Write a program that prompts the user to enter a file name, then opens the...

    JAVA Write a program that prompts the user to enter a file name, then opens the file in text mode and reads it. The input files are assumed to be in CSV format. The input files contain a list of integers on each line separated by commas. The program should read each line, sort the numbers and print the comma separated list of integers on the console. Each sorted list of integers from the same line should be printed together...

  • The picture is given in a PPM file and your program should put the converted one...

    The picture is given in a PPM file and your program should put the converted one into another PPM file. •Use argv[1] for the given file and argv[2] for the converted file.In addition, you can use a temporary file called tmp.ppm. •The number of rows and columns are not fixed numbers. •The converted file should also follow the PPM format with the above simplification, and can be converted subsequently. •Read the pixel matrix into a buffer. •For each row i(...

  • for external Maintenan diameter of a screw thread is h 1. The diameter measured from root...

    for external Maintenan diameter of a screw thread is h 1. The diameter measured from root to root fo thread. A. major B. minor C. pitch D. outside 2. The thread permitted in engagement between mating A. form B. series C. pitch specifies the amount of tole of tolerance mating threads D. class 3. Which of the following has a head at one end external threads at the other to accept a nut A. Self-tapping screw B. Washer C. Retaining...

  • C++ Manually create a file Numbers.txtand fill it with integers, one below the other. Write a...

    C++ Manually create a file Numbers.txtand fill it with integers, one below the other. Write a program that reads ANY sequence of integers (can be positive, 0 or negative) from this file. Using a looping construct, you will read numbers from the file till end of the file is reached. Calculate the largest and the smallest numbers among the data in the file. Your code must display both of those on the terminal screen along with total count of numbers...

  • QUESTION The ReadFile class opens and reads a text file. The WriteFile class opens and writes...

    QUESTION The ReadFile class opens and reads a text file. The WriteFile class opens and writes to a file. Compile and run these programs. There are several ways to read/write text files. The examples shown here are just one way of achieving this. Look at the API for the BufferedReader class. The readline() method is a simple way to read the text file line by line. It returns null when the end of the file has been reached. https://docs.oracle.com/javase/8/docs/api/java/io/BufferedReader.html Look...

  • operating system engineering , please read the question and solve on the given skeleton code ....

    operating system engineering , please read the question and solve on the given skeleton code . Write a multi-threaded program with Semaphores as counters and pthread_mutex_t mutex to solve the producer-consumer problem: A bounded buffer is simply a global integer array of size N (2) which can be accessed by multiple threads. • Create two types of threads - Producer (2) and Consumer (2). Producers will write to the buffer, and the consumers will read the buffer. In this scenario,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT