Pin basting is usually used when you are machine quilting. Thread is usually not used because basting threads get caught up in the machine quilting and become hard to remove.
Thread basting is usually used when you are hand quilting. This is because pins catch your thread and interfere with hand quilting, plus they interfere with hooping your quilt.
I have never heard of doing both.