In [[Computer Programming]], Code Space is the [[memory]] segment in the main memory allocated to a process to store the code in execution.
In [[multi-threading]] environment, [[threads]] share code space along with data space, which reduces the overhead of [[context switching]] considerably as compared to [[process]] switching.