If you want to enter the freeway but you don't see a gap in traffic, you should:

If you want to enter the freeway but do not see a space for your vehicle in traffic, slow down on the ramp to wait for a gap. Do not drive to the end of the ramp and wait for a gap or you will not have enough room to accelerate to the speed of traffic before entering the roadway.
DMV Writen Test