COMP 206 Lecture Notes - Lecture 27: A.Out, Sbrk, C Dynamic Memory Allocation
Document Summary
Question 2: the chatting aspect does not have to go one at a time, rather, it must have a turn taking aspect. Many c library functions use os system calls that do not have as clean of an interface. Ex. malloc uses sbrk (set break) sbrk is used by any programming language, while malloc is only used by c fread/fwrite: must use buffered i/o, while its os sytem call counterparts, read and write, can be unbuffered. Process management: system(), popen(), (for, wait, exec system calls. C is very prevalent it"s the #1 la(cid:374)guage i(cid:374) i(cid:374)dustry, a(cid:374)d is the syste(cid:373)s basis for many other languages. Super simple to use, apparently (very natural to use intuitively) Created in the early 90s easy to learn (simple syntax, object orientation, good documentation) Powerful (comprehensive set of libraries, easy to implement new functions in c/c++) important current tool. Python is not compiled but interpreted (like bash)