/ : /, , . , / . .
. / , / /, . , / , . , , , , . , , .
, .
Linux
Linux aio (asynchronous input-output).
, -, aiocb. :
int aio_fildes ;
off_t aio_offset , /;
volatile void *aio_buf ;
size_t aio_nbytes ;
int aio_reqprio ;
struct sigevent aio_sigevent , , .. ;
int aio_lio_opcode .
/ aio_read() aio_write(), aiocb . , 0, -1.
aio_sigevent aiocb, aio_error(). , . , EINPROGRESS.
Windows
Windows aio Linux. aiocb Windows OVERLAPPED, :
Internal ;
InternalHigh . ;
Offset , ;
OffsetHigh ;
hEvent .
|
|
/ : .
-, ReadFile() WriteFile() . OVERLAPPED. , -, hEvent. . ReadFile()/WriteFile() . , .
-, ReadFileEx()/WriteFileEx(). OVERLAPPED, hEvent . . , Ex -, .
, . , . : , , . . .
Linux
Linux :
;
.
shared , :
gcc shared o mylibrary.so mylibrary.o
mylibrary.so. .so (shared object) .
. -, gcc l, . , . .
dlopen(). , , :
RTLD_LAZY ;
RTLD_NOW ;
RTLD_GLOBAL , , . OR .
|
|
dlopen() . , , . dlsym(), .
dlclose().
Windows
(DLL Dynamically Linked Library) Windows , . .
LoadLibrary(), dll- . ( ) GetProcAddress(), . FreeLibrary().
: Linux Windows. . , :
1) (-) ;
2) - (-) , ;
3) - - ;
4) - - , ;
5) .1, .
() .
- , .
6
: , .
, , , , , .. .
, , , .. malloc(), realloc(), free(), new delete .. .
/++ . , . , , , .. .
:
, ;
, ( malloc(), free() ..);
, ( , ).
|
|
:
. free() ( delete) . , , .
. . , , , . , , .
. , , . .
( ).
, malloc() free(). . :
(realloc());
;
;
.
7
: , .
, , .
:
. , , ;
, , ;
(, ..), .
, . :
( ), : ext2, ext3, ReiserFS, FAT32, NTFS, XFS . Unix- , FAT32 NTFS Windows;
( ): QIC .;
: ISO9660, ISO9690, HFS, UDF .;
: AEFS .;
: NFS, SMBFS, SSHFS .
Unix (ext2, ext3, ReiserFS .).
|
|
Unix:
, ;
. (inode) . , . ;
, . .
. , , .
, . , . ; , , .
, .. , . , , .. .
13 . 10 . , 11- (indirection block) 128 (256) . , , 12- , , , 128 (256) . , 13- 128 (256) . .
, Unix . , , . , , , (pipe), (link) .
, .
FAT32 NTFS.
( ) 4 ( ).
, . . :
, ;
, .
, ( , , ), .
1. , . UNIX / . . .: , 2003.
2. , . . : / . . . .: , 2005.
3. , . . . : / . . , . . . .: - , 2004.
4. , . . UNIX / . . , . . , . . . .: -, 2005.
5. , . UNIX / . . .: -, 2005.
6. , . Microsoft Windows: Windows Server 2003, Windows XP Windows 2000 / . , . . .: ; .: , 2005.
7. , . / . . .: , 2004.
8. , . / . . .: , 2004.
|
|
9. , . Windows / . . .: , 2005.
. 2008, . 63.
1 40 02 01
,
2-