I am really struggling to understand this question any advice would be appreciated.
Let $X_n$ be a sequence of independent random variables, each with the exponential distribution with rate $1/2$.
a) Use the Borel-Cantelli lemmas to show that
$$P(X_n > \alpha \log n\text{ for infinitely many }n) = \begin{cases} 0 \quad& \text{if} \:\:\:\alpha > 2 \\ 1 & \text{if} \:\:\: \alpha \le 2 \\ \end{cases}$$
b) Show that $\limsup_n \dfrac{Xn}{\log n} = 2$ almost surely.
Hint: Consider the events $\{X_n > 2 \log n \:\: \text{i.o.}\}$ and $\{X_n > (2 + 2/k) \log n \:\: \text{i.o.}\}$.
a)
Note $P(X_n > \alpha \log n) = \frac{1}{n^{\alpha/2}}$. What can you say about the convergence of $\sum_{n=1}^\infty P(X_n > \alpha\log n)$ for different values of $\alpha$?
Hint: For $\alpha>2$ apply the Borel-Cantelli lemma. For $\alpha \le 2$, apply the "converse" Borel-Cantelli lemma.
b)
By part a), $P\{X_n > 2 \log n \text{ i.o.}\}=1$, so, $\limsup_n \frac{X_n}{\log n} \ge 2$ almost surely.
If we show $\limsup_n \frac{X_n}{\log n} \le 2$ almost surely, or equivalently $P\left\{\limsup_n \frac{X_n}{\log n} > 2\right\}=0$, then we are finished.
For any $k>0$ we have $$P\left\{\limsup_n \frac{X_n}{\log n} > 2+2/k\right\} \le P\{X_n >(2+2/k)\log n \text{ i.o.}\} = 0$$ using part a) again. Taking $k \to \infty$ and noting $\left\{\limsup_n \frac{X_n}{\log n} > 2+2/k\right\}$ is an increasing sequence of sets gives $$P\left\{\limsup_n \frac{X_n}{\log n} > 2\right\} = 0.$$