Up to 90 days before arrival, it is single entry and gives you 90 days inside Thailand. On arrival you should open a Thai bank account and deposit a minimum of 400k baht. 30 days before your stamp runs out go into your local immigration office and get the list of requirements for a 1 year extension
If you have a minimum of 500k baht in a bank account for the 30 days before the date you try to extend you have a chance. ALL other paperwork needs to be updated and there will likely be extra requirements