ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Operating Systems  >>  RTOS  >>  Vxworks
 
 


 

 
 Vxworks interview questions  Vxworks Interview Questions
 Windows CE interview questions  Windows CE Interview Questions
 RTOS AllOther interview questions  RTOS AllOther Interview Questions
Question
IN RTOS HAVING 1OKBYTES OF MEMORY AND YOUR PROGRAMM FOR
ASKING  FOR 5KBYTES AND YOU GOT NULL ERROR ? WHY DOES IT
BEHAVES LIKE THIS
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: IN RTOS HAVING 1OKBYTES OF MEMORY AND YOUR PROGRAMM FOR ASKING FOR 5KBYTES AND YOU GOT NULL ERROR ? WHY DOES IT BEHAVES LIKE THIS
Answer
# 1
This might be because, you might be allocating memory
dynamically from the heap. But care is not taken to
deallocate the same.
as a result, there are memory leaks and finally the os says
that there is no free memory
 
Is This Answer Correct ?    2 Yes 0 No
Ravidevroy
 
  Re: IN RTOS HAVING 1OKBYTES OF MEMORY AND YOUR PROGRAMM FOR ASKING FOR 5KBYTES AND YOU GOT NULL ERROR ? WHY DOES IT BEHAVES LIKE THIS
Answer
# 2
The problem is because of memory fragmentation..

Though 10KB of memory is available but it will be in 
smaller chunks (less than 5KB).. when we request for 5KB 
malloc returns NULL as it coudnt find a chunk of size 5KB...
 
Is This Answer Correct ?    2 Yes 0 No
Feroz Ahmed
 
 
 

 
 
 
Other Vxworks Interview Questions
 
  Question Asked @ Answers
 
Which RTOS supports Non-Preemptive scheduling ? Why other scheduling methods are supported by such Oses? Elico1
What is priority inversion? Juniper-Networks4
what are the various methods to overcome it?  1
IN RTOS HAVING 1OKBYTES OF MEMORY AND YOUR PROGRAMM FOR ASKING FOR 5KBYTES AND YOU GOT NULL ERROR ? WHY DOES IT BEHAVES LIKE THIS  2
What is another for creating a task without using taskspawn?  2
 
For more Vxworks Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com