83 lines
3.4 KiB
HTML
83 lines
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [C++ Toolkit ANNOUNCE] <corelib/ncbi_system.hpp> -- SetHeapLimit() and SetCpuTimeLimit()
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:cpp-announce%40ncbi.nlm.nih.gov?Subject=%5BC%2B%2B%20Toolkit%20ANNOUNCE%5D%20%3Ccorelib/ncbi_system.hpp%3E%20--%20SetHeapLimit%28%29%20and%20SetCpuTimeLimit%28%29&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="000044.html">
|
|
<LINK REL="Next" HREF="000046.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[C++ Toolkit ANNOUNCE] <corelib/ncbi_system.hpp> -- SetHeapLimit() and SetCpuTimeLimit()</H1>
|
|
<!--htdig_noindex-->
|
|
<B>Denis Vakatov</B>
|
|
<A HREF="mailto:cpp-announce%40ncbi.nlm.nih.gov?Subject=%5BC%2B%2B%20Toolkit%20ANNOUNCE%5D%20%3Ccorelib/ncbi_system.hpp%3E%20--%20SetHeapLimit%28%29%20and%20SetCpuTimeLimit%28%29&In-Reply-To="
|
|
TITLE="[C++ Toolkit ANNOUNCE] <corelib/ncbi_system.hpp> -- SetHeapLimit() and SetCpuTimeLimit()">vakatov at ncbi.nlm.nih.gov
|
|
</A><BR>
|
|
<I>Fri Jul 13 17:49:39 EDT 2001</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="000044.html">[C++ Toolkit ANNOUNCE] <util/random_gen.hpp> CRandom:: -- a class to generate random numbers
|
|
</A></li>
|
|
<LI>Next message: <A HREF="000046.html">[C++ Toolkit ANNOUNCE] BIG! New NCBI network client API.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#45">[ date ]</a>
|
|
<a href="thread.html#45">[ thread ]</a>
|
|
<a href="subject.html#45">[ subject ]</a>
|
|
<a href="author.html#45">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--/htdig_noindex-->
|
|
<!--beginarticle-->
|
|
<PRE>FYI,
|
|
|
|
Vladimir Ivanov wrote a couple of useful functions to set limitations
|
|
on the CPU time and/or dynamically allocated memory that can be
|
|
consumed by a process:
|
|
|
|
<A HREF="http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/include/corelib/ncbi_system.hpp">http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/include/corelib/ncbi_system.hpp</A>
|
|
|
|
|
|
For the example of usage, see:
|
|
|
|
<A HREF="http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/corelib/test/test_ncbi_system.cpp">http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/corelib/test/test_ncbi_system.cpp</A>
|
|
|
|
|
|
To see how it works, run:
|
|
$NCBI/c++/Release/bin/test_ncbi_system mem
|
|
$NCBI/c++/Release/bin/test_ncbi_system cpu
|
|
|
|
|
|
Enjoy the joys of self-limitation ;-),
|
|
Denis
|
|
|
|
|
|
P.S. Now, the limitations work only on UNIX platforms...
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<!--htdig_noindex-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="000044.html">[C++ Toolkit ANNOUNCE] <util/random_gen.hpp> CRandom:: -- a class to generate random numbers
|
|
</A></li>
|
|
<LI>Next message: <A HREF="000046.html">[C++ Toolkit ANNOUNCE] BIG! New NCBI network client API.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#45">[ date ]</a>
|
|
<a href="thread.html#45">[ thread ]</a>
|
|
<a href="subject.html#45">[ subject ]</a>
|
|
<a href="author.html#45">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://www.ncbi.nlm.nih.gov/mailman/listinfo/cpp-announce">More information about the cpp-announce
|
|
mailing list</a><br>
|
|
<!--/htdig_noindex-->
|
|
</body></html>
|