Discussion Forums  >  Introduce Yourself

Replies: 8    Views: 130

TechtagonDigital
I hate code!
Profile
Posts: 61
Reg: Aug 16, 2012
Bronx
2,610
10/10/13 04:18 PM (12 years ago)

Need help in write a C++ code.

I need some to help me a some codes in C++. It's a simple project, only need help because i do not know C++. Thank you and waiting for your response.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/10/13 04:53 PM (12 years ago)
Hey buddy in the Bronx! Try posting your needs here, good chance someone has done it already! If not it will give folk a better idea of what you need. Peace the boo
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
10/10/13 05:35 PM (12 years ago)
Hey east coaster I'm in NYC too. Let me know if you want some help.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/10/13 08:28 PM (12 years ago)
NYC is the place to be. OK, maybe not. Scotland is where it's at! Always good to be on a thread with your good self @feraco.
 
Derval
Aspiring developer
Profile
Posts: 364
Reg: Sep 20, 2012
Milan
17,240
like
10/11/13 01:35 AM (12 years ago)
@MacApple Oxford is where it’s at this weekend! :-) Can you believe David is actually in this hemisphere?!! @Techtagondigital - have you tried using the Buzztouch platform yet? You’ll actually find that you don’t need to know C++ and you can produce simple apps and publish them under your own name. It’s great - give it a try!
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
10/11/13 03:54 AM (12 years ago)
Thanks! Oxford, Scotland it all sounds great lets go!
 
TechtagonDigital
I hate code!
Profile
Posts: 61
Reg: Aug 16, 2012
Bronx
2,610
like
10/11/13 04:55 AM (12 years ago)
Thank you all. what i need help with does not have anything to do with an app I'll post the question on here and see what help i can get
 
TechtagonDigital
I hate code!
Profile
Posts: 61
Reg: Aug 16, 2012
Bronx
2,610
like
10/11/13 04:57 AM (12 years ago)
Here is the question : 5 processes are characterized by 3 readers and 2 writers. Up to two reader processes can be inside their critical section without any writer process. For writer process to go into its critical section, it should check whether there is any reader or writer process is in the critical section. Critical section in this problem is reading shared data buffer for reader and updating shared data buffer for writer processes. It is up to you to implement any shared data for readers and writers but you have to specify clearly following things in your sample output. • When reader or writer enters its critical section, it has to report whether there are any reader(s) or writer(s) other than itself. • You may print out the data you read or write when you implement real buffer. (Optional) • You have to print out “Panic Messages” when the rules behind this semi critical section problem are not observed. In your main program, you run the random number generator function to choose process to execute. The chosen process starts (resumes) execution and after one instruction, it will be returned. (You should force each process run exactly one instruction then returns and waiting for its turn.) You can implement this using switch statement in C++. Each process is one big switch statement and will be returned after each instruction. You need to keep track of program counter of each process to resume at the right place once it will be chosen to run by keeping global counter variable per process. Subproject 1: You should implement binary and counting semaphores as studied in the class for this project. Subproject 2: You should implement swap operation as studied in the class for this project.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/11/13 08:14 PM (12 years ago)
Oh my gosh, this is not the place to ask that question! You truly have a homework assignment that is best solved by doing research and then asking the kind folks on StackOverflow.com -- Niraj
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.