Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7
This is the forum to discuss the Wrox book Beginning Linux Programming, 4th Edition by Neil Matthew, Richard Stones; ISBN: 9780470147627
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Linux Programming, 4th Edition ISBN 978-0-470-14762-7 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 2nd, 2012, 06:36 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default possible new Errata

hi there,

in chapter 7 (Data management):
the author talks about dynamic memory allocation in C using the stander C library function malloc(),

he says in page 260 that:

Quote:
Eventually, when the application exhausts both the physical memory and the swap space, or when the
maximum stack size is exceeded
, the kernel finally refuses the request for further memory and may preemptively terminate the program.
now according to my knowledge malloc() allocate memory on the heap not the stack
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2012, 01:36 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Location: Alexandria, Egypt
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Saleh Abbas
Default

I think every thing is okey, when you use malloc() function, you allocate memory on the heap. But also the stack size may be exceeded. Because the stack is used to dynamically allocate the local variables used in functions so it may be exceeded. Nothing wrong, I don't think you can find any error in understanding the content of the book by probability 0 %.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata Eddierocks BOOK: JavaScript Programmer's Reference 14 March 31st, 2011 12:54 PM
A new errata Cookie Chen C# 1 November 12th, 2007 04:12 AM
Errata vidyar_rajan Beginning PHP 0 August 31st, 2006 05:37 AM
Errata DaveSussman BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 6th, 2005 06:35 PM



All times are GMT -4. The time now is 02:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.