473,320 Members | 1,950 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.

Pre-emptive multithread programing....

Hi Everyone,
Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.I want this on linux ..using the sigemptyset,sigaddset and
sigprocmask.Please any1 help me in this ...any suggestions or links
will be highly appreciated.

Thanks in advance......and i really need this so guys please help me
out...
Swetha

Oct 17 '07 #1
5 1779
swetha wrote:
Hi Everyone,
Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.I want this on linux ..using the sigemptyset,sigaddset and
sigprocmask.Please any1 help me in this ...any suggestions or links
will be highly appreciated.

Thanks in advance......and i really need this so guys please help me
out...
Sorry, swetha, but this is not the right place. We discuss standard C
here. signal, ualarm, sigemptyset, sigaddset and sigprocmask are not
standard C. You may surprised how little standard C deals with: no
threads, no networking, no graphics...

Your best bet would probably be something like linux.dev.c-programming,
but since I do not subscribe to that group, I may be wrong. Find and
read their FAQ first, if they have one.

Peter
Oct 17 '07 #2
Peter Pichler <us****@pichler.co.ukwrites:
swetha wrote:
> Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.I want this on linux ..using the sigemptyset,sigaddset and
sigprocmask.Please any1 help me in this ...any suggestions or links
will be highly appreciated.
Thanks in advance......and i really need this so guys please help me
out...

Sorry, swetha, but this is not the right place. We discuss standard C
here. signal, ualarm, sigemptyset, sigaddset and sigprocmask are not
standard C. You may surprised how little standard C deals with: no
threads, no networking, no graphics...

Your best bet would probably be something like
linux.dev.c-programming, but since I do not subscribe to that group, I
may be wrong. Find and read their FAQ first, if they have one.
comp.programming.threads or comp.unix.programmer might also be good
places to post.

--
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"
Oct 17 '07 #3
On Oct 18, 1:14 am, swetha <laptop...@gmail.comwrote:
Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.
Why the hell you want to overlap the scheduler's job (that, in the
case of Linux, *IS* already preemptive), apart of the senselessness of
the question?

PS: remember that you have to write in vanilla english.
PPS: You are OT.

Oct 18 '07 #4
On Oct 17, 7:14 pm, swetha <laptop...@gmail.comwrote:
Hi Everyone,
Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.I want this on linux ..using the sigemptyset,sigaddset and
sigprocmask.Please any1 help me in this ...any suggestions or links
will be highly appreciated.

Thanks in advance......and i really need this so guys please help me
out...
Swetha
This is a LINUX programming issue. Standard C does not know about such
functions.

Ed

Oct 18 '07 #5
On Oct 17, 7:14 pm, swetha <laptop...@gmail.comwrote:
Hi Everyone,
Can any1 help me in writing a C program...for
making threads pre-emptive every 0.05 seconds using signal and
ualarm.I want this on linux ..using the sigemptyset,sigaddset and
sigprocmask.Please any1 help me in this ...any suggestions or links
will be highly appreciated.

Thanks in advance......and i really need this so guys please help me
out...
Swetha

Standard C does not know about such functions. You might ask this in a
linus newdgroup. I think comp.os.linux.answers might be a good place
to start.

HTH,
Ed

Oct 18 '07 #6

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

Similar topics

21
by: Headless | last post by:
I've marked up song lyrics with the <pre> tag because it seems the most appropriate type of markup for the type of data. This results in inefficient use of horizontal space due to UA's default...
7
by: Alan Illeman | last post by:
How do I set several different properties for PRE in a CSS stylesheet, rather than resorting to this: <BODY> <PRE STYLE="font-family:monospace; font-size:0.95em; width:40%; border:red 2px...
2
by: Buck Turgidson | last post by:
I want to have a css with 2 PRE styles, one bold with large font, and another non-bold and smaller font. I am new to CSS (and not exactly an expert in HTML, for that matter). Is there a way to...
5
by: Michael Shell | last post by:
Greetings, Consider the XHTML document attached at the end of this post. When viewed under Firefox 1.0.5 on Linux, highlighting and pasting (into a text editor) the <pre> tag listing will...
8
by: Jarno Suni not | last post by:
It seems to be invalid in HTML 4.01, but valid in XHTML 1.0. Why is there the difference? Can that pose a problem when such a XHTML document is served as text/html?
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
9
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash...
23
by: Xah Lee | last post by:
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a...
14
by: Schraalhans Keukenmeester | last post by:
I am building a default sheet for my linux-related pages. Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.