[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] C++ container stack ved brug af en fil



Peter Makholm wrote:
> "David Bo Jensen" <sslug@sslug> writes:
> 
>> Den må max fylde 10000 elementer i hukommelsen, kommer den over dette antal, 
>> skal den bruge en fil til at gemme de først ankomne elementer. Efterhånden 
>> som stacken tømmes skal elementerne indlæses igen fra filen.
> 
> Hvorfor ikke bare mmap(3)'e et passende hukommelsesområde og så lade
> kernen bekymre sig om hvor meget der skal skubbes ud til disk?
> 
> //Makholm
Hvorfor i det hele taget ikke lade kernen styre det hele ? Det er jo
virtuel hukommelse, så hvis der ikke er plads til elementerne, så ryger
de på disk gennem swapping mekanismen.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *