Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-20-2005, 09:10 AM
|
#1
|
Member
Registered: Aug 2004
Posts: 210
Rep:
|
round robin source code
Hi to all,
Does anyone have the round robin algorithm's source code. If you know of any link where I can dwld it, or even better, if you have it, pls send it to me.
Regards,
Visham
|
|
|
04-21-2005, 07:40 AM
|
#3
|
Member
Registered: Aug 2004
Posts: 210
Original Poster
Rep:
|
help with shell script!!!
Hi to all,
I badly need some help with this. I need a shell script version of some C code I wrote. The basic idea is as follows:
variable x is given the value of 1 at start in script. When it goes down the function, I want it to retain the value at which the program terminated when it first ran so that when the program runs a second time, it takes the last value that x got assigned (that is either a 0 or a 1).
if(x==1)
{
printf("Good Morning!!");
x=0;
}
else
if(x==0)
{
printf("Good Afternoon!!");
x=1;
}
Thx in advance..
Regards,
Visham
|
|
|
04-21-2005, 08:00 AM
|
#4
|
Member
Registered: Aug 2004
Posts: 210
Original Poster
Rep:
|
Sorry wrongly posted this new thread here...
Thx truckstuff but I actually searched with Google (all combinations tried)..the one you told me (Inlab) does give the source code of Round robin algo. alone...its together with all those other codes...
difficult to know where it starts and where it ends..
Don't u know of another link..better than this one?
Regards,
Visham
|
|
|
All times are GMT -5. The time now is 12:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|