Multi-choice problem: does word "life" have the same meaning in the following two sentences?

While there's life there's hope.

I have known him all his life.

pick from the following.
[1]. different meanings
[2]. the same meaning
[1].