[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++]heap allokering?



Bo Simonsen <sslug@sslug> writes:

> free() er nok lidt mere end en noop. Måske bliver det smidt i en kø for
> frigivning.. Er formentlig ikke ligeså performerence krævende.

At smide noget i en kø lyder bare som om at skubbe problemerne foran
sig. glibc's free() laver faktisk ikke så lidt bogholderi.

> Problemet med operativsystemer er at programmørene implementere det som
> de lyster, så er det svært for studerende/e.l. at hitte rede i hvordan
> at skidtet rent faktisk virker.

Linux/glibc er ikke skrevet til undervisningsbrug. Så skal du nok have
fat i Minix.

>> > sbrk er også nævnt i ikke-ansi udgaven af K&R.
>> 
>> Tilgengæld er den bevidst udeladt af POSIX.1
>
> Pga. malloc()-familien kun er brugt ?

brk(2) på mit system siger:

       brk and sbrk are not defined in the C Standard and are
       deliberately excluded from the POSIX.1 standard (see paragraphs
       B.1.1.1.3 and B.8.3.3).

Jeg har ikke gravet referencerne op.

-- 
 Peter Makholm     |                                 Wisdom has two parts:
 sslug@sslug |                           1) having a lot to say, and
 http://hacking.dk |                                      2) not saying it


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [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] *