Problem based on monitors

Problem based on monitors

A file is to be shared among different processes, each of which has a unique number. The file can be accessed simultaneously by several processes, subject to the following constraint: the sum of all unique numbers associated with all the processes currently accessing the file must be less than n. Write a monitor to coordinate access to the file.

Please write the entire Java/C/C++ program for it

View Answers

Ads









Related Tutorials/Questions & Answers:
Problem based on monitors
Problem based on monitors  A file is to be shared among different processes, each of which has a unique number. The file can be accessed simultaneously by several processes, subject to the following constraint: the sum of all
Array /string based problem....
Array /string based problem....  thanx to help me.but again a problem is here that it sorts single char as (a,b,c,n,m)but not the string .and also... solve this problem also as soon as possible..... import java.util.*; public class
Advertisements
string array based problem
string array based problem  R/sir, firstly thanks to help me so much. but now it can sort string very well but in case of integers... sorted value: 11 12 13 3 this is the problem here...... import java.util.*; public
ModuleNotFoundError: No module named 'masakari-monitors'
ModuleNotFoundError: No module named 'masakari-monitors'  Hi, My... named 'masakari-monitors' How to remove the ModuleNotFoundError: No module named 'masakari-monitors' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'python-monitors'
ModuleNotFoundError: No module named 'python-monitors'  Hi, My... named 'python-monitors' How to remove the ModuleNotFoundError: No module named 'python-monitors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-monitors'
ModuleNotFoundError: No module named 'python-monitors'  Hi, My... named 'python-monitors' How to remove the ModuleNotFoundError: No module named 'python-monitors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-monitors'
ModuleNotFoundError: No module named 'python-monitors'  Hi, My... named 'python-monitors' How to remove the ModuleNotFoundError: No module named 'python-monitors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-monitors'
ModuleNotFoundError: No module named 'python-monitors'  Hi, My... named 'python-monitors' How to remove the ModuleNotFoundError: No module named 'python-monitors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-monitors'
ModuleNotFoundError: No module named 'python-monitors'  Hi, My... named 'python-monitors' How to remove the ModuleNotFoundError: No module named 'python-monitors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'qaviton-monitors'
ModuleNotFoundError: No module named 'qaviton-monitors'  Hi, My... named 'qaviton-monitors' How to remove the ModuleNotFoundError: No module named 'qaviton-monitors' error? Thanks   Hi, In your
arry based problem
arry based problem  how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
arry based problem
arry based problem  how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
ModuleNotFoundError: No module named 'past-mtl-monitors'
ModuleNotFoundError: No module named 'past-mtl-monitors'  Hi, My... named 'past-mtl-monitors' How to remove the ModuleNotFoundError: No module named 'past-mtl-monitors' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'past-mtl-monitors'
ModuleNotFoundError: No module named 'past-mtl-monitors'  Hi, My... named 'past-mtl-monitors' How to remove the ModuleNotFoundError: No module named 'past-mtl-monitors' error? Thanks   Hi, In your
problem 1 = C#
C# how to calculate discount   We are selling Monitors. We have decided to give discounts based on the following items. i. CRT monitors attract 10... should be displayed in a Label. ii.LCD monitors are of 2 types a. 21 inch
problem on strings
problem on strings  in string1 "123456 ABC DEF...",IN string2 "raveen". iwant to add string2 after 123456 in the first string based on index number.i need logic for this with out using StringBuffer concept. Thanks in advanace
problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me
java code that monitors the mic input, and dims the screen accordingly
java code that monitors the mic input, and dims the screen accordingly  I know the very basic syntax of java, could someone help me write a code that would constantly analyze the sound being taken in by the mic on the computer
javascript problem
javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter... enter please help me this problem
Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot... havenot set the build path.if this is the problem then tell me how to set
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot... havenot set the build path.if this is the problem then tell me how to set
Problem with cookies
Problem with cookies  Hello All, i need jsp code for RememberMe module of login. i am facing problem with cookies. so please if any one could guide me please help and provide mme the exact code.   Please visit
problem with package
problem with package  Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file in " net" folder.The problem is i want to use that .class file in some other

Ads