Web Hosting, Design, & Coding forum

Question

OS programming

by GaneshPhreak / August 4, 2014 8:01 PM PDT

Implement your own API and library for a synchronization OS problem.Write your own semaphore.

Can anybody find me an answer to this question ??

Discussion is locked
You are posting a reply to: OS programming
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: OS programming
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Re: OS programming
by Kees_B Forum moderator / August 4, 2014 8:04 PM PDT
In reply to: OS programming

This isn't a question. It's an assignment. So better start studying the course material or you might not be able to do it.

Kees

Collapse -
OS Programming
by GaneshPhreak / August 4, 2014 8:17 PM PDT
In reply to: Re: OS programming

Yes it is an assignment. I tried alot but i couldn't get answer for this question. That's why I thought of asking it on this forum.

Collapse -
Since it isn't a question, it doesn't have an answer.
by Kees_B Forum moderator / August 4, 2014 8:22 PM PDT
In reply to: OS Programming

Best of luck with your study.

Kees

Collapse -
Answer
In addition
by Jimmy Greystone / August 4, 2014 11:39 PM PDT
In reply to: OS programming

In addition to Kees' comment, we don't as a general rule, give out answers to homework questions here. If you can't figure out the assignment on your own, try talking to the professor or teaching assistants for the course. If you still can't figure it out, it might be an indication that you're not cut out to be a programmer. There's no shame in that, unless you don't recognize and accept your limits and find something you are better suited for. We all have our inherent talents and blind spots; things that I find ridiculously simple might be impossibly complex for someone else and the reverse is likely true in a different context.

If we just gave everyone the answer who came here asking, not only are we facilitating what most Universities would consider intellectual dishonesty, punishable by you instantly flunking the course (best case) or expulsion (worst case), but we would be doing you and your classmates a disservice. When you get a degree, it is supposed to represent that you have obtained a certain base level of knowledge, but if you had people doing your assignments for you, you didn't actually learn everything for that degree, did you? So you might get a job and your employer wants you to write a semaphore for them. Then, after they fire you because you misrepresented yourself and your skills, they might be wary of hiring anyone else with a degree from the same University. Meaning that the degree everyone else gets from that University is now worth less because employers have discovered that not everyone with that degree actually knows everything they claim to have learned. Do you really want to be that person?

There's absolutely nothing wrong with finding out that you're not cut out to be a programmer unless you let pride and ego prevent you from seeking out a different degree.

Collapse -
Answer
Hey, I used a semaphore.
by R. Proffitt Forum moderator / August 5, 2014 5:00 AM PDT
In reply to: OS programming

I used one of the many from http://greenteapress.com/semaphores/downey08semaphores.pdf and when we went to production I was told "that's not a semaphore."

I guess they had a very narrow view of what a semaphore was and since the app was done, passed all tests (save the reviewer's limited definition of what a semaphore is) the committee and I agreed that it was not a semaphore according to John and let it pass.

Hope this helps,
Bob

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

GIVEAWAY

We are giving away 'Black Panther' swag!

Four lucky readers will be taking home *Marvel*ous "Black Panther" prizes, including magazines autographed by the King of Wakanda himself! Giveaway ends Feb. 25, 2018.