Re: Is Euphoria a virus ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tue, 14 Mar 2000, you wrote:
> > > >What needs to change ? Eu or Linux ?
> > The consensus of opinion on my Linux maillist was:
> > while it is not at all likely that you could actually crash a Linux server
> > this
> > way (the worst that should happen is a segfault in your program),
> > it is entirely possible that the program could have eaten up 99%+ of the
> > processor's time. That would have pretty much the same result as a crash,
> > unless someone was there to re-nice or kill your runaway program.
> > Perhaps the sysadmin should take a look at putting some quotas on things.
> > -Irv
>
> Then tell me, could the same effect be achieved by an endless while loop ?

Of course. The loop would be more effective if written in C, however.
Euphoria isn't fast enough to use up _all_ the CPU cycles.

> If so then I can use neither recursion nor while loops in CGI scripts out
> of fear that a random bug would cause it to crash when somebody tried it
> in the middle of the night.

> This would be somewhat restrictive, which would defeat the object of using
> Euphoria in the first place.

This has nothing to do with recursion, loops, or choice of language.
Ask your sysadmins to look up ulimit in their bash manual. It allows limits
to be set on how much of a system's reources can be allocated to a particular
process.

Obviously, if the machine is doing other important things, they shouldn't allow
any one user or program to commandeer _all_ available resources.

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu