मैमोरी एलोकेशन क्या है तथा इसके प्रकार क्या है?

Memory Allocation in Hindi – मैमोरी एलोकेशन क्या है?

Memory allocation एक ऐसी प्रक्रिया जिसमें कंप्यूटर प्रोग्राम्स को मेमोरी allocate की जाती है।

मेमोरी एलोकेशन दो प्रकार की होती है:-
1:- Static Memory Allocation
2:- Dynamic Memory Allocation

Static Memory Allocation

static memory allocation में मेमोरी को compile time में ही allocate कर दिया जाता है। इस allocation का प्रयोग तब किया जाता है जब मेमोरी की साइज़ fix (निश्चित) हो।

इसमें हम execution के दौरान मेमोरी को allocate और deallocate नही कर सकते है तथा जो variables होते है वह हमेशा के लिए allocate हो जाते है। stacks तथा heaps के द्वारा इस allocation को implement किया जाता है।

memory allocation in hindi

Dynamic Memory Allocation

वह प्रक्रिया जिसमें मैमोरी runtime में allocate की जाती है Dynamic memory allocation कहलाती है। Data segments के द्वारा इस allocation को implement किया जाता है।

निवेदन:-अगर आपके पास भी कोई हिंदी में topic या किसी subject से सम्बंधित नोट्स है तो कृपया उसे अपनी फोटो के साथ E-mail करें. हमारा e-mail:- [email protected] है। हम उसे यहां आपकी फ़ोटो के साथ प्रकाशित करेंगें।

17 thoughts on “मैमोरी एलोकेशन क्या है तथा इसके प्रकार क्या है?”

    • Primitive are the most basic kinds of data types and they directly contain values. There are 8 primitive types in total :-
      . Byte
      . Short
      . Int
      . Long
      . Char
      . Boolean
      .float
      Double
      Non primitive data types are called reference types in java and they refer to an object they are created by the programmer and are not defined by java like primitive are. A reference type references a memory location where the data is stored rather than directly containing a value.

      Reply

Leave a Comment