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   SiteMap shows list of All Categories in this site.
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 ?    3 Yes 1 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 ?    6 Yes 0 No
Feroz Ahmed
 
 
 
  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
# 3
RTOS might be having 10k memory, might not fragmentation
problem, and the largest hole available to user might be
lesser than 5k, this condition might be one of the reason
for NULL error.
 
Is This Answer Correct ?    0 Yes 1 No
Mohan
 

 
 
 
Other Vxworks Interview Questions
 
  Question Asked @ Answers
 
What is another for creating a task without using taskspawn?  2
I have a situation where the programme counter(PC) shows that vxworks msgQreceive function has been called by task A and Q is full, still I am not picking up the messages. There is no other task registered to receive messages from this Q. The sending task B, which is ISR in this case, is getting timedout everytime it tries posting new message in it. A's state is PEND which means I am waiting for some resource to get free but PC shows I have called vxworks msgQReceive and currently at qJobget+0x018 location. There seems to be two causes now(identified by me): either vxworks qjobget task is not able to do semTake or no messages in Q. But Q is full and semTake failure seems unlikely(though I dont have a mechanism to check so). Besides explaining root cause for above, can anyone suggest how to get my task in READY state again? I also tried flushing the Q; on doing this, more messages get posted in Q but A still doesnt pick up any :(  2
What is priority inversion? Juniper-Networks8
IN RTOS HAVING 1OKBYTES OF MEMORY AND YOUR PROGRAMM FOR ASKING FOR 5KBYTES AND YOU GOT NULL ERROR ? WHY DOES IT BEHAVES LIKE THIS  3
what do u mean by Semaphore..when v wil go for using this..explain about hat.what is the difference betw..binary ,,counting and mutex semphores Bosch1
what are the various methods to overcome it?  2
Which RTOS supports Non-Preemptive scheduling ? Why other scheduling methods are supported by such Oses? Elico1
 
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