LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2015, 09:53 PM   #1
ashukla364
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Rep: Reputation: Disabled
linux create process


hi ,
would be of much help if i get the answer of this question.
how a child process gets the create process parameter information in the Linux Fork-Exec model?

thanks in advance.
 
Old 10-22-2015, 10:09 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
no offense but this sounds like homework
 
Old 10-22-2015, 10:12 PM   #3
ashukla364
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
actually this the homework i am new to linux and tried everywhere this question to find on the google too, but i did not get the answer of it. Is it allowed to ask question like this over here , if not I am really for this.
 
Old 10-22-2015, 10:46 PM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by ashukla364 View Post
how a child process gets the create process parameter information in the Linux Fork-Exec model?
From the exec system call. There are several variations such as execve(), which sets both command line arguments and environment.

For details, use Wikipedia and/or a web search for "fork exec intro"..

Edit: A nice-looking presentation how to write a small shell. Should give you insight in the fork-exec process: http://www.cs.uni.edu/~diesburg/cour.../r02/week2.pdf

Last edited by berndbausch; 10-22-2015 at 10:49 PM.
 
1 members found this post helpful.
Old 10-22-2015, 10:47 PM   #5
ashukla364
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks will do so
 
Old 10-22-2015, 10:54 PM   #6
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
I never really understood why people don't like or object to helping people with homework problems. Is it because no one ever helped you so you're returning the favor? Is it considered cheating to ask for help? I am probably missing some important point about it.

Seems to me that helping someone with homework is a good thing to do.

To the original question I will say first thing you should do is git clone the linux kernel or download the latest tar ball.
See kernel.org.

In either one you will find a Documentation directory and you will find the source of course too.
 
1 members found this post helpful.
Old 10-22-2015, 10:58 PM   #7
ashukla364
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Rinndalir
 
Old 10-22-2015, 11:10 PM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Quote:
Originally Posted by Rinndalir View Post
I never really understood why people don't like or object to helping people with homework problems. Is it because no one ever helped you so you're returning the favor? Is it considered cheating to ask for help? I am probably missing some important point about it.
It is in forum rules.
 
Old 10-22-2015, 11:25 PM   #9
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
It is in forum rules.
You said "it" is in the rules, what did you mean? This is all I found, is there more that I missed?

"Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member."

http://www.linuxquestions.org/linux/rules.html
 
Old 10-22-2015, 11:28 PM   #10
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by ashukla364 View Post
Thanks Rinndalir
No problem. The way I see it is that whether or not we help you ultimately won't make any difference in your take up of the topics and subjects you're asking about. In fact it may help you decide sooner you don't want to study computers. Or the opposite that the encouragement has spurred you on to really dig into it all. In other words it's really up to you. Just don't steal the half-life3 source code.
 
Old 10-23-2015, 03:25 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
Originally Posted by Rinndalir View Post
... is there more that I missed?
Nope.
Re-read (in isolation) the initial post. Looks like a cut-and-paste of set question with no evidence of input from the OP. Hard to evoke any sympathy.

Like it says, we are happy to help.
 
4 members found this post helpful.
Old 10-23-2015, 05:53 AM   #12
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Xubuntu, Manjaro
Posts: 745
Blog Entries: 3

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Quote:
Originally Posted by Rinndalir View Post
I never really understood why people don't like or object to helping people with homework problems. Is it because no one ever helped you so you're returning the favor? Is it considered cheating to ask for help? I am probably missing some important point about it.
The point, at least in my case, is that I don't mind helping out with homework. I have been asking for, and gotten help, on various forums myself regarding homework (although it has been awhile). There is however a huge difference between a question that looks something like:
Quote:
Originally Posted by Imaginary person
Hi! I am studying [insert course here] and have to solve the following task [whatever task].
The expected output is [whatever it is].
My code this far looks like this [the code].
As you can see, my output is not correct. I suspect that the problem lies [wherever].
Any help would be appreciated.
And this:
http://www.linuxquestions.org/questi...2/#post5431782

I have seen quite a lot of the latter as of late, and I treat those threads here the same way that I would treat a person asking me for a handout in real life. In other words; at least make an effort. I don't care if it is a small effort or even if you know that it has bugs, just TRY. I will never (and I challenge any one of you to find such a quote from me) belittle anybody for writing bad code. Hell, I was forced to rectify a bug in a Python program I wrote several years ago and I was ready to strangle myself over the poor structure and even worse readability. Point being: we ALL s*ck at first. WE ALL need help from time to time. But creating an account here just to ask that someone else fix their task, be it homework or just "work", that just doesn't sit right with me.

Sorry if I hijacked the thread, but I felt the need to address Rinndalir's question. No disrespect towards the OP.

Best regards,
HMW

Last edited by HMW; 10-23-2015 at 06:34 AM. Reason: Spelling
 
2 members found this post helpful.
Old 10-23-2015, 06:23 AM   #13
cynwulf
Senior Member
 
Registered: Apr 2005
Location: The Black Country, UK
Posts: 1,741
Blog Entries: 1

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
The homework question, in case anyone missed it (a few did), copied and pasted verbatim, is here (emphasis) added
Quote:
Originally Posted by ashukla364 View Post
hi ,
would be of much help if i get the answer of this question.
how a child process gets the create process parameter information in the Linux Fork-Exec model?

thanks in advance.
The policy on homework questions is clear and one I fully agree with as there are numerous people who are more than happy to take your answer, copy and paste it into their assignment and just submit that as finished work.
 
1 members found this post helpful.
Old 10-23-2015, 08:20 AM   #14
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I usually do not answer a question such as this. One reason is that if the student can't answer a lesson summary question, then they're not going to be too successful in their course. That question is formulated to ask a summary about exactly what a lesson just covered, like a review question at the end of a chapter. So this means that the reader did not even read the material on this subject.
 
Old 10-23-2015, 10:36 AM   #15
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,001

Rep: Reputation: 67
Quote:
Originally Posted by Rinndalir View Post
I never really understood why people don't like or object to helping people with homework problems. Is it because no one ever helped you so you're returning the favor? Is it considered cheating to ask for help? I am probably missing some important point about it.
It might just be me thinking of myself as a younger man, but I can't help imagining some pot-smoking, dorito-eating bonehead who was too lazy to go to class or read the handouts.

Quote:
Originally Posted by Rinndalir View Post
Seems to me that helping someone with homework is a good thing to do.
This is what one's teachers are paid for, no? I would certainly agree that there are some bad teachers in the world, but I think there are more bad students.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does windows create process in user mode and linux in kernel mode ? golden_boy615 Linux - Security 2 07-01-2013 09:45 AM
how to create 5child process from different parent process pro_learner Linux - Newbie 1 03-06-2013 10:27 AM
How to create heap dump for a linux process? kannan9688 Linux - General 4 09-11-2009 12:50 AM
Create process phoenix_fei Programming 2 01-20-2005 09:30 AM


All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration