modify C code example to read out scheduling information and change priorities and/or resource assignments