For a foreign national to be granted permanent residence in the United States a relative or employer must petition for the foreign national. An immigrant visa number is issued as it becomes available according to order of importance (application type).
The application procedure will vary depending on who is sponsoring the applicant. Applicants who are adjusting their status can apply for a work permit, and or advance parole (to travel outside of the U.S.) while their application is pending.
For more information click here: