[C++ Toolkit ANNOUNCE] <corelib/ncbi_system.hpp> -- SetHeapLimit() and SetCpuTimeLimit()

Denis Vakatov vakatov at ncbi.nlm.nih.gov
Fri Jul 13 17:49:39 EDT 2001


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:

		  http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/include/corelib/ncbi_system.hpp


For the example of usage, see:

		  http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/corelib/test/test_ncbi_system.cpp


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...



More information about the cpp-announce mailing list