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

Join 109,296 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,218 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



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: 18


My Contributions


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


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


Debian guru

Group Icon
Joined: 30 Dec, 2007
Posts: 1,401



Thanked 7 times

Dream Kudos: 325
My Contributions


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

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


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,939



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


This one doesn't have how many "marks" that it's worth, so at least he's removing that little bit.
User is offlineProfile CardPM

Go to the top of the page

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


New D.I.C Head

*
Joined: 21 Dec, 2006
Posts: 3


My Contributions


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

Fast ReplyReply to this topicStart new topic
Time is now: 9/6/08 09:40AM

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