473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Tasks in linux

Hello

How to create a task in C on linux operating system?
Awaiting for the reply

Thanking you in advance

-Raghu

Jul 13 '07 #1
7 4121
On 7 13 , 3 01 , raghu <ragavaku...@gmail.comwrote:
Hello

How to create a task in C on linux operating system?
Awaiting for the reply

Thanking you in advance

-Raghu
you can use vi or vim editor to edit your program like test.c,
then you can compile it :
gcc -o test test.c
test is a executable file name of test.c.
at last execute test like this
../test

Jul 13 '07 #2
raghu wrote:
Hello

How to create a task in C on linux operating system?
Awaiting for the reply

Thanking you in advance
One crude way is to use the system function, declared in stdlib.h. To
gain finer control, you need to use implementation and system specific
extensions, which are topical in a group devoted to your system or
implementation.

Jul 13 '07 #3
On Jul 13, 12:01 pm, raghu <ragavaku...@gmail.comwrote:
Hello

How to create a task in C on linux operating system?
Awaiting for the reply
What do you mean by a task in C?
I think you are asking a question beyond the scope of the C
lang. It would be better if you can elaborate your question.

Mohan
Jul 13 '07 #4
On Jul 13, 1:59 pm, Mohan <moha...@gmail.comwrote:
On Jul 13, 12:01 pm, raghu <ragavaku...@gmail.comwrote:Hello
How to create a task in C on linux operating system?
Awaiting for the reply

What do you mean by a task in C?
I think you are asking a question beyond the scope of the C
lang. It would be better if you can elaborate your question.

Mohan
In my project I have more than one task(process). Is their any
approach to create a task(process) using C language on linux
environment. Is their any built in functions in C for that? (Why linux
environment means for different RTOS has different built in
functions). Threads can be used but is their any other approach which
has all the properties of a process than thread?

-Raghu

Jul 13 '07 #5
On Jul 13, 2:30 pm, raghu <ragavaku...@gmail.comwrote:
On Jul 13, 1:59 pm, Mohan <moha...@gmail.comwrote:
On Jul 13, 12:01 pm, raghu <ragavaku...@gmail.comwrote:Hello
How to create a task in C on linux operating system?
Awaiting for the reply
What do you mean by a task in C?
I think you are asking a question beyond the scope of the C
lang. It would be better if you can elaborate your question.
Mohan

In my project I have more than one task(process). Is their any
approach to create a task(process) using C language on linux
environment. Is their any built in functions in C for that? (Why linux
environment means for different RTOS has different built in
functions). Threads can be used but is their any other approach which
has all the properties of a process than thread?
Your question is not related to standard C.
<OT>
Posting in user groups related to Linux programming would be more
appropriate.
You may want to know about fork() in Linux to create child process.
</OT>

Mohan

Jul 13 '07 #6

"raghu" <ra*********@gmail.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
On Jul 13, 1:59 pm, Mohan <moha...@gmail.comwrote:
>On Jul 13, 12:01 pm, raghu <ragavaku...@gmail.comwrote:Hello
How to create a task in C on linux operating system?
Awaiting for the reply

What do you mean by a task in C?
I think you are asking a question beyond the scope of the C
lang. It would be better if you can elaborate your question.

Mohan

In my project I have more than one task(process). Is their any
approach to create a task(process) using C language on linux
environment. Is their any built in functions in C for that? (Why linux
environment means for different RTOS has different built in
functions). Threads can be used but is their any other approach which
has all the properties of a process than thread?
fork() is the UNIX function for generating another thread in the same
program. It is not a standard library function. system(), which is
standard, is the interface to the command shell and can be used to create a
separate program.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
Jul 14 '07 #7
"Malcolm McLean" <re*******@btinternet.comwrites:
[...]
fork() is the UNIX function for generating another thread in the same
program. It is not a standard library function. system(), which is
standard, is the interface to the command shell and can be used to
create a separate program.
Thank you for demonstrating why off-topic questions should be
redirected rather than answered here.

<OT>fork() does not create another thread in the same program; it
creates a new process. The new process runs a new instance of the
parent program.</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 14 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: L'Angel Admirable | last post by:
Hi, I have an auction site running. Now I want the auction to be able to automatically send a mail msg to the seller after it expires. How do I do it? Obviously there is some sort of way that I...
3
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
6
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question...
5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
1
by: Dominic | last post by:
Just in case someone is interested. I came up with this solution since my previous posting. Maybe you've got some other ideas or critcism. I'll listen ;-) Ciao, Dominic P.S. Python is...
27
by: John Bailo | last post by:
The recent quarterly earnings report, required by law, issued by the Microsoft Corporation are a harbinger of what is to come. Slowing revenue growth, and declining profits. What we see here is...
1
by: srihari | last post by:
Hai I have installed db2 8.1 on linux machine. The current db2 users are instance user(db2inst1), fenced user(db2fenc1) and db2as(administration server). To start using the database do I have to...
0
by: gojners | last post by:
I need to go through a set of tasks. Each task has a priority (low/medium/high) and a status (Open/In progress/Closed). Each task also has a membership (Internal/External/Other). My problem is...
9
by: hgrecco | last post by:
Hello, I am working on a program that must perform a certain task on numeric data stored in a file. The task is given by user input from a list of possible tasks. The file has some particular...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.