{"id":4386,"date":"2025-09-02T03:51:21","date_gmt":"2025-09-01T22:21:21","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=4386"},"modified":"2025-09-02T04:15:19","modified_gmt":"2025-09-01T22:45:19","slug":"%f0%9d%91%b4%f0%9d%92%86%f0%9d%92%8e%f0%9d%92%90%f0%9d%92%93%f0%9d%92%9a-%f0%9d%91%a8%f0%9d%92%8d%f0%9d%92%8d%f0%9d%92%90%f0%9d%92%84%f0%9d%92%82%f0%9d%92%95%f0%9d%92%90%f0%9d%92%93%f0%9d%92%94","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=4386","title":{"rendered":"\ud835\udc74\ud835\udc86\ud835\udc8e\ud835\udc90\ud835\udc93\ud835\udc9a \ud835\udc68\ud835\udc8d\ud835\udc8d\ud835\udc90\ud835\udc84\ud835\udc82\ud835\udc95\ud835\udc90\ud835\udc93\ud835\udc94 \ud835\udc77\ud835\udc82\ud835\udc93\ud835\udc95 &#8211; \ud835\udfd0"},"content":{"rendered":"\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-4f4ecc3c15705a709f903c7d42312688\">Memory allocation is like fitting puzzle pieces together in the world of computer programming. Every time a programmer uses commands like malloc or calloc, there&#8217;s a lot going on behind the scenes. It&#8217;s more than just asking for memory; it&#8217;s about making sure everything fits just right and works efficiently with the computer&#8217;s hardware.<br><br>Consider the challenge of fragmentation, an age-old specter haunting memory management. Fragmentation, essentially, is the phenomenon where memory, though available in bits and pieces, isn&#8217;t contiguous enough for allocation requests. Picture a jigsaw puzzle with all its pieces scattered. Each piece represents a block of memory. Now, even if these individual blocks combined can form a large enough space for a new piece (or a memory request), their scattered nature makes it impossible to fit the new piece seamlessly.<br><br>This article describes on what exactly a memory allocator should do and a bit about fragmentation.<\/p>\n\n\n\n<div class=\"wp-block-pdfjsblock-pdfjs-embed pdfjs-wrapper\"><\/div>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-863c68b395a1b487ec96c4e3733a5fd3\">LinkedIn Post:  <br><a href=\"https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_memory-allocators-part-2-by-yash-activity-7121343957787189248-Qqgf?utm_source=share&#038;utm_medium=member_desktop&#038;rcm=ACoAACV39CcB7Pk0N7IuUB-8O0soOPWzMuYlnv8\" rel=\"nofollow\">https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_memory-allocators-part-2-by-yash-activity-7121343957787189248-Qqgf?utm_source=share&#038;utm_medium=member_desktop&#038;rcm=ACoAACV39CcB7Pk0N7IuUB-8O0soOPWzMuYlnv8<\/a><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color wp-elements-947d6f6ac9c1eeda3c514c1d1a798354\" style=\"background:linear-gradient(135deg,rgb(35,23,11) 3%,rgb(254,45,45) 49%,rgb(107,0,62) 100%)\"><strong>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/strong><br><strong>Article Written By<\/strong>: Yashwanth Naidu Tikkisetty<br><strong>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Memory allocation is like fitting puzzle pieces together in the world of computer programming. Every time a programmer uses commands like malloc or calloc, there&#8217;s a lot going on behind the scenes. It&#8217;s more than just asking for memory; it&#8217;s about making sure everything fits just right and works efficiently with the computer&#8217;s hardware. Consider [&hellip;]<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=4386\" class=\"more-link\">Read More <span class=\"screen-reader-text\">\ud835\udc74\ud835\udc86\ud835\udc8e\ud835\udc90\ud835\udc93\ud835\udc9a \ud835\udc68\ud835\udc8d\ud835\udc8d\ud835\udc90\ud835\udc84\ud835\udc82\ud835\udc95\ud835\udc90\ud835\udc93\ud835\udc94 \ud835\udc77\ud835\udc82\ud835\udc93\ud835\udc95 &#8211; \ud835\udfd0<\/span><\/a>","protected":false},"author":120055267,"featured_media":4394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false,"token":"eyJpbWciOiJodHRwczpcL1wvY3RoZWNvc21vcy5jb21cL3dwLWNvbnRlbnRcL3VwbG9hZHNcLzIwMjVcLzA5XC9pbWFnZS5qcGciLCJ0eHQiOiJcdWQ4MzVcdWRjNzRcdWQ4MzVcdWRjODZcdWQ4MzVcdWRjOGVcdWQ4MzVcdWRjOTBcdWQ4MzVcdWRjOTNcdWQ4MzVcdWRjOWEgXHVkODM1XHVkYzY4XHVkODM1XHVkYzhkXHVkODM1XHVkYzhkXHVkODM1XHVkYzkwXHVkODM1XHVkYzg0XHVkODM1XHVkYzgyXHVkODM1XHVkYzk1XHVkODM1XHVkYzkwXHVkODM1XHVkYzkzXHVkODM1XHVkYzk0IFx1ZDgzNVx1ZGM3N1x1ZDgzNVx1ZGM4Mlx1ZDgzNVx1ZGM5M1x1ZDgzNVx1ZGM5NSAtIFx1ZDgzNVx1ZGZkMCIsInRlbXBsYXRlIjoiaGlnaHdheSIsImZvbnQiOiIiLCJibG9nX2lkIjoxMjczMzg4Mzl9.dKCTSSH2Z24j3XPRb-XUgXx3t8Zs6H9I8pPNwpa2BRQMQ"},"version":2},"_wpas_customize_per_network":false},"categories":[28627,30181,35264203,5495],"tags":[772321195,772321193,772321206,34922710,772321207],"class_list":{"0":"post-4386","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-embedded","8":"category-embedded-systems","9":"category-linux-3","10":"category-operating-system","11":"tag-c-programming","12":"tag-embedded-systems","13":"tag-linkedin","14":"tag-linux-2","15":"tag-memory-management","17":"fallback-thumbnail"},"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2025\/09\/image.jpg?fit=1024%2C768&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-18K","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/users\/120055267"}],"replies":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4386"}],"version-history":[{"count":13,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4386\/revisions"}],"predecessor-version":[{"id":4407,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4386\/revisions\/4407"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/4394"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}