Question: Consider the problem of padding the following structure, and answer the two questions below, assume that you are compiling on a system with a 32bit

Consider the problem of padding the following structure, and answer the two questions below, assume that you are compiling on a system with a 32bit architecture.

Struct task_struct

{

Char tag [3];

Int priority [3];

Char live;

Stryct list_head*children;

Int parent_pid;

};

1: what is the size of this struct as defined?

2:how much space would be wasted with word length padding?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!