COMP 206 Lecture Notes - Lecture 27: A.Out, Sbrk, C Dynamic Memory Allocation

9 views1 pages

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)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents