Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,251 Programmers. There are 2,143 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

operating systems

 
Reply to this topicStart new topic

operating systems

aamir_mustafa2007@msn.com
post 27 Apr, 2008 - 03:13 AM
Post #1


New D.I.C Head

*
Joined: 3 Jul, 2007
Posts: 12



Consider the following code segment, how many times “hello, world” would be printed, if every fork() call is successful.

main()
{
fork();
printf(“hello, world\n”);
fork();
fork();
printf(“hello, world\n”);
fork();
fork();
printf(“hello, world\n”);

exit(0);
}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Tom9729
post 27 Apr, 2008 - 10:52 AM
Post #2


D.I.C Addict

Group Icon
Joined: 30 Dec, 2007
Posts: 574

Umm all of your posts have consisted of homework questions.

Please at least try to answer the question before you post here. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 27 Apr, 2008 - 10:59 AM
Post #3


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,321

This one doesn't have how many "marks" that it's worth, so at least he's removing that little bit.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

**silver**
post 28 Apr, 2008 - 11:55 AM
Post #4


New D.I.C Head

*
Joined: 21 Dec, 2006
Posts: 3

I think nearly 5*(5+4+3+2+1)+4*(4+3+2+1)+3*(3+2......)..........
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 09:01AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month